Home
last modified time | relevance | path

Searched refs:FTD (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeductionGuide.cpp327 NamedDecl *transformConstructor(FunctionTemplateDecl *FTD, in transformConstructor()
342 if (FTD) { in transformConstructor()
343 TemplateParameterList *InnerParams = FTD->getTemplateParameters(); in transformConstructor()
410 if (FTD) { in transformConstructor()
1307 if (auto *FTD = DeclareAggregateDeductionGuideForTypeAlias( in DeclareAggregateDeductionGuideFromInitList() local
1309 auto *GD = cast<CXXDeductionGuideDecl>(FTD->getTemplatedDecl()); in DeclareAggregateDeductionGuideFromInitList()
1312 return FTD; in DeclareAggregateDeductionGuideFromInitList()
1348 auto *FTD = cast<FunctionTemplateDecl>( in DeclareAggregateDeductionGuideFromInitList() local
1351 auto *GD = cast<CXXDeductionGuideDecl>(FTD->getTemplatedDecl()); in DeclareAggregateDeductionGuideFromInitList()
1354 return FTD; in DeclareAggregateDeductionGuideFromInitList()
[all …]
H A DSemaAccess.cpp541 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend() local
542 if (!FTD) in MatchesFriend()
543 FTD = (*I)->getDescribedFunctionTemplate(); in MatchesFriend()
544 if (!FTD) in MatchesFriend()
547 FTD = FTD->getCanonicalDecl(); in MatchesFriend()
549 if (Friend == FTD) in MatchesFriend()
552 if (EC.isDependent() && MightInstantiateTo(S, FTD, Friend)) in MatchesFriend()
H A DSemaTemplateInstantiate.cpp94 if (auto *FTD = dyn_cast_if_present<FunctionTemplateDecl>( in getPrimaryTemplateOfGenericLambda() local
96 FTD && FTD->getInstantiatedFromMemberTemplate()) { in getPrimaryTemplateOfGenericLambda()
98 FTD->getInstantiatedFromMemberTemplate()->getTemplatedDecl(); in getPrimaryTemplateOfGenericLambda()
330 Response HandleFunctionTemplateDecl(const FunctionTemplateDecl *FTD, in HandleFunctionTemplateDecl() argument
332 if (!isa<ClassTemplateSpecializationDecl>(FTD->getDeclContext())) { in HandleFunctionTemplateDecl()
334 const_cast<FunctionTemplateDecl *>(FTD), in HandleFunctionTemplateDecl()
335 const_cast<FunctionTemplateDecl *>(FTD)->getInjectedTemplateArgs(), in HandleFunctionTemplateDecl()
338 NestedNameSpecifier *NNS = FTD->getTemplatedDecl()->getQualifier(); in HandleFunctionTemplateDecl()
371 const_cast<FunctionTemplateDecl *>(FTD), Arguments, in HandleFunctionTemplateDecl()
380 return Response::ChangeDecl(FTD->getLexicalDeclContext()); in HandleFunctionTemplateDecl()
[all …]
H A DSemaLambda.cpp2365 FunctionTemplateDecl *FTD = FD->getPrimaryTemplate(); in getPatternFunctionDecl() local
2366 if (!FTD) in getPatternFunctionDecl()
2369 while (FTD->getInstantiatedFromMemberTemplate()) in getPatternFunctionDecl()
2370 FTD = FTD->getInstantiatedFromMemberTemplate(); in getPatternFunctionDecl()
2372 return FTD->getTemplatedDecl(); in getPatternFunctionDecl()
H A DSemaTemplateVariadic.cpp48 auto *FTD = FD ? FD->getDescribedFunctionTemplate() : nullptr; in addUnexpanded() local
49 if (FTD && FTD->getTemplateParameters()->getDepth() >= DepthLimit) in addUnexpanded()
H A DSemaTemplateInstantiateDecl.cpp334 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareSimdDeclAttr() local
335 New = FTD->getTemplatedDecl(); in instantiateOMPDeclareSimdDeclAttr()
417 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareVariantAttr() local
418 New = FTD->getTemplatedDecl(); in instantiateOMPDeclareVariantAttr()
2321 for (FunctionTemplateDecl *FTD : DFTSI->getCandidates()) { in VisitFunctionDecl()
2323 SemaRef.FindInstantiatedDecl(D->getLocation(), FTD, TemplateArgs)) in VisitFunctionDecl()
2722 for (FunctionTemplateDecl *FTD : DFTSI->getCandidates()) { in VisitCXXMethodDecl()
2724 SemaRef.FindInstantiatedDecl(D->getLocation(), FTD, TemplateArgs)) in VisitCXXMethodDecl()
4864 FunctionTemplateDecl *FTD, const TemplateArgumentList *Args, in InstantiateFunctionDeclaration() argument
4866 FunctionDecl *FD = FTD->getTemplatedDecl(); in InstantiateFunctionDeclaration()
[all …]
H A DSemaAvailability.cpp52 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) in getAttrForPlatform() local
53 D = FTD->getTemplatedDecl(); in getAttrForPlatform()
H A DSemaLookup.cpp5429 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate() local
5430 D = FTD->getTemplatedDecl(); in ValidateCandidate()
5467 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ValidateCandidate() local
5468 FD = FTD->getTemplatedDecl(); in ValidateCandidate()
H A DSemaDeclCXX.cpp1242 if (FunctionTemplateDecl *FTD = in checkTupleLikeDecomposition() local
1244 TemplateParameterList *TPL = FTD->getTemplateParameters(); in checkTupleLikeDecomposition()
1638 if (auto *FTD = FD->getDescribedFunctionTemplate()) in CheckCXXDefaultArguments() local
1639 if (FTD->isMemberSpecialization()) in CheckCXXDefaultArguments()
6098 } else if (auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) { in CheckAbstractClassUsage() local
6099 CheckAbstractClassUsage(Info, FTD->getTemplatedDecl()); in CheckAbstractClassUsage()
10617 if (FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate()) in ActOnReenterTemplateScope() local
10618 ParameterLists.push_back(FTD->getTemplateParameters()); in ActOnReenterTemplateScope()
17853 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ActOnFriendFunctionDecl() local
17854 FD = FTD in ActOnFriendFunctionDecl()
17979 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(Dcl)) { SetDeclDefaulted() local
18913 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) actOnDelayedExceptionSpecification() local
[all...]
H A DSemaCodeComplete.cpp3939 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(TD)) in templateResultType() local
3940 return FTD->getTemplatedDecl()->getReturnType().getAsString(Policy); in templateResultType()
5650 else if (const auto *FTD = llvm::dyn_cast<FunctionTemplateDecl>(D)) in getApproximateType() local
5651 ReturnType = FTD->getTemplatedDecl()->getReturnType(); in getApproximateType()
6456 } else if (auto *FTD = dyn_cast<FunctionTemplateDecl>(C)) { in ProduceConstructorSignatureHelp() local
6458 SemaRef.isInitListConstructor(FTD->getTemplatedDecl())) in ProduceConstructorSignatureHelp()
6462 FTD, DeclAccessPair::make(FTD, C->getAccess()), in ProduceConstructorSignatureHelp()
H A DSemaOverload.cpp7639 static bool isNonDependentlyExplicit(FunctionTemplateDecl *FTD) { in isNonDependentlyExplicit() argument
7640 return ExplicitSpecifier::getFromDecl(FTD->getTemplatedDecl()).isExplicit(); in isNonDependentlyExplicit()
10007 auto *FTD = cast<FunctionTemplateDecl>(*I); in AddArgumentDependentLookupCandidates() local
10009 FTD, FoundDecl, ExplicitTemplateArgs, Args, CandidateSet, in AddArgumentDependentLookupCandidates()
10013 *this, Args, FTD->getTemplatedDecl())) { in AddArgumentDependentLookupCandidates()
10015 FTD, FoundDecl, ExplicitTemplateArgs, {Args[1], Args[0]}, in AddArgumentDependentLookupCandidates()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclFriend.h151 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange() local
152 return FTD->getSourceRange(); in getSourceRange()
H A DJSONNodeDumper.h446 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *FTD) { in VisitFunctionTemplateDecl() argument
447 writeTemplateDecl(FTD, true); in VisitFunctionTemplateDecl()
H A DRecursiveASTVisitor.h758 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(D))
760 FTD->getDeclName().getCXXDeductionGuideTemplate()))
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DDelayedDiagnostic.h249 struct FTD { struct
257 struct FTD ForbiddenTypeData; argument
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp151 void HandleTemplateSpecializations(const FunctionTemplateDecl &FTD, in HandleTemplateSpecializations() argument
153 for (const auto *D : FTD.specializations()) in HandleTemplateSpecializations()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DDeclBase.cpp252 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(this)) in getAsFunction() local
253 return FTD->getTemplatedDecl(); in getAsFunction()
751 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(this)) in getAvailability() local
752 return FTD->getTemplatedDecl()->getAvailability(Message, EnclosingVersion, in getAvailability()
H A DMicrosoftMangle.cpp131 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getStructor() local
132 return FTD->getTemplatedDecl()->getCanonicalDecl(); in getStructor()
135 if (const auto *FTD = FD->getPrimaryTemplate()) in getStructor() local
136 return FTD->getTemplatedDecl()->getCanonicalDecl(); in getStructor()
H A DDeclPrinter.cpp878 else if (FunctionTemplateDecl *FTD = in VisitFriendDecl() local
881 VisitFunctionTemplateDecl(FTD); in VisitFriendDecl()
H A DItaniumMangle.cpp1477 auto *FTD = dyn_cast<FunctionTemplateDecl>(ND); in mangleUnqualifiedName() local
1479 (FTD && FTD->getTemplatedDecl()->isMemberLikeConstrainedFriend())) { in mangleUnqualifiedName()
5859 if (auto *FTD = dyn_cast_or_null<FunctionTemplateDecl>(ResolvedTemplate)) { in isOverloadable() local
5860 auto *RD = dyn_cast<CXXRecordDecl>(FTD->getDeclContext()); in isOverloadable()
H A DStmtProfile.cpp2097 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(SubDecl)) in VisitLambdaExpr() local
2098 Call = FTD->getTemplatedDecl(); in VisitLambdaExpr()
H A DStmtPrinter.cpp1651 if (auto *FTD = FD->getPrimaryTemplate()) in VisitMemberExpr() local
1652 TPL = FTD->getTemplateParameters(); in VisitMemberExpr()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DUninitializedValues.cpp425 if (FunctionTemplateDecl *FTD = FD->getPrimaryTemplate()) in hasTrivialBody() local
426 return FTD->getTemplatedDecl()->hasTrivialBody(); in hasTrivialBody()
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterDecl.cpp695 for (FunctionTemplateDecl *FTD : DFTSInfo->getCandidates()) in VisitFunctionDecl()
696 Record.AddDeclRef(FTD); in VisitFunctionDecl()
H A DASTReaderDecl.cpp4318 else if (auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) in loadDeclUpdateRecords() local
4319 ASTDeclReader::AddLazySpecializations(FTD, PendingLazySpecializationIDs); in loadDeclUpdateRecords()

12