| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 85 if (const auto *FTD = FD->getPrimaryTemplate()) in Find() local 86 handleFunctionTemplateDecl(FTD); in Find() 138 void handleFunctionTemplateDecl(const FunctionTemplateDecl *FTD) { in handleFunctionTemplateDecl() argument 139 USRSet.insert(getUSRForDecl(FTD)); in handleFunctionTemplateDecl() 140 USRSet.insert(getUSRForDecl(FTD->getTemplatedDecl())); in handleFunctionTemplateDecl() 141 for (const auto *S : FTD->specializations()) in handleFunctionTemplateDecl() 170 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) in addUSRsOfCtorDtors() local 172 dyn_cast<CXXConstructorDecl>(FTD->getTemplatedDecl())) in addUSRsOfCtorDtors()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | Comment.cpp | 264 const FunctionTemplateDecl *FTD = cast<FunctionTemplateDecl>(CommentDecl); in fill() local 267 const FunctionDecl *FD = FTD->getTemplatedDecl(); in fill() 270 TemplateParameters = FTD->getTemplateParameters(); in fill()
|
| H A D | DeclBase.cpp | 221 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(this)) in getAsFunction() local 222 return FTD->getTemplatedDecl(); in getAsFunction() 626 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(this)) in getAvailability() local 627 return FTD->getTemplatedDecl()->getAvailability(Message, EnclosingVersion, in getAvailability()
|
| H A D | MicrosoftMangle.cpp | 128 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getStructor() local 129 return FTD->getTemplatedDecl()->getCanonicalDecl(); in getStructor() 132 if (const auto *FTD = FD->getPrimaryTemplate()) in getStructor() local 133 return FTD->getTemplatedDecl()->getCanonicalDecl(); in getStructor()
|
| H A D | DeclPrinter.cpp | 813 else if (FunctionTemplateDecl *FTD = in VisitFriendDecl() local 816 VisitFunctionTemplateDecl(FTD); in VisitFriendDecl()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | DeclFriend.h | 152 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange() local 153 return FTD->getSourceRange(); in getSourceRange()
|
| H A D | JSONNodeDumper.h | 427 void VisitFunctionTemplateDecl(const FunctionTemplateDecl *FTD) { in VisitFunctionTemplateDecl() argument 428 writeTemplateDecl(FTD, true); in VisitFunctionTemplateDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | AST.cpp | 528 auto *FTD = Templated->getDescribedFunctionTemplate(); in VisitParmVarDecl() local 529 if (!FTD) in VisitParmVarDecl() 531 int ParamIndex = paramIndex(*FTD, *Auto.getDecl()); in VisitParmVarDecl() 543 if (Args->size() != FTD->getTemplateParameters()->size()) in VisitParmVarDecl() 605 if (auto *FTD = llvm::dyn_cast<FunctionTemplateDecl>(TD)) in getOnlyInstantiation() local 606 return getOnlyInstantiationImpl(FTD); in getOnlyInstantiation()
|
| H A D | InlayHints.cpp | 252 else if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(CalleeDecls[0])) in VisitCallExpr() local 253 Callee = FTD->getTemplatedDecl(); in VisitCallExpr()
|
| H A D | Hover.cpp | 606 if (const auto *FTD = FD->getDescribedTemplate()) { in getHoverContents() local 608 fetchTemplateParameters(FTD->getTemplateParameters(), PP); in getHoverContents() 609 D = FTD; in getHoverContents()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CallGraph.cpp | 83 if (FunctionTemplateDecl *FTD = LE->getDependentCallOperator()) in VisitLambdaExpr() local 84 for (FunctionDecl *FD : FTD->specializations()) in VisitLambdaExpr()
|
| H A D | UninitializedValues.cpp | 410 if (FunctionTemplateDecl *FTD = FD->getPrimaryTemplate()) in hasTrivialBody() local 411 return FTD->getTemplatedDecl()->hasTrivialBody(); in hasTrivialBody()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | DelayedDiagnostic.h | 247 struct FTD { struct 255 struct FTD ForbiddenTypeData; argument
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaAccess.cpp | 533 FunctionTemplateDecl *FTD = (*I)->getPrimaryTemplate(); in MatchesFriend() local 534 if (!FTD) in MatchesFriend() 535 FTD = (*I)->getDescribedFunctionTemplate(); in MatchesFriend() 536 if (!FTD) in MatchesFriend() 539 FTD = FTD->getCanonicalDecl(); in MatchesFriend() 541 if (Friend == FTD) in MatchesFriend() 544 if (EC.isDependent() && MightInstantiateTo(S, FTD, Friend)) in MatchesFriend()
|
| H A D | SemaTemplateVariadic.cpp | 47 auto *FTD = FD ? FD->getDescribedFunctionTemplate() : nullptr; in addUnexpanded() local 48 if (FTD && FTD->getTemplateParameters()->getDepth() >= DepthLimit) in addUnexpanded()
|
| H A D | SemaTemplateInstantiateDecl.cpp | 316 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareSimdDeclAttr() local 317 New = FTD->getTemplatedDecl(); in instantiateOMPDeclareSimdDeclAttr() 399 if (auto *FTD = dyn_cast<FunctionTemplateDecl>(New)) in instantiateOMPDeclareVariantAttr() local 400 New = FTD->getTemplatedDecl(); in instantiateOMPDeclareVariantAttr() 4757 Sema::InstantiateFunctionDeclaration(FunctionTemplateDecl *FTD, in InstantiateFunctionDeclaration() argument 4760 FunctionDecl *FD = FTD->getTemplatedDecl(); in InstantiateFunctionDeclaration() 4764 *this, Loc, FTD, Args->asArray(), in InstantiateFunctionDeclaration()
|
| H A D | SemaTemplate.cpp | 2157 NamedDecl *transformConstructor(FunctionTemplateDecl *FTD, in transformConstructor() 2171 if (FTD) { in transformConstructor() 2172 TemplateParameterList *InnerParams = FTD->getTemplateParameters(); in transformConstructor() 2218 if (FTD) { in transformConstructor() 2515 auto *FTD = dyn_cast<FunctionTemplateDecl>(D); in DeclareImplicitDeductionGuides() local 2517 dyn_cast_or_null<CXXConstructorDecl>(FTD ? FTD->getTemplatedDecl() : D); in DeclareImplicitDeductionGuides() 2520 if (!CD || (!FTD && CD->isFunctionTemplateSpecialization())) in DeclareImplicitDeductionGuides() 2529 Transform.transformConstructor(FTD, CD); in DeclareImplicitDeductionGuides()
|
| H A D | SemaLookup.cpp | 5536 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in ValidateCandidate() local 5537 D = FTD->getTemplatedDecl(); in ValidateCandidate() 5574 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ValidateCandidate() local 5575 FD = FTD->getTemplatedDecl(); in ValidateCandidate()
|
| H A D | SemaCodeComplete.cpp | 3821 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(TD)) in templateResultType() local 3822 return FTD->getTemplatedDecl()->getReturnType().getAsString(Policy); in templateResultType() 5510 else if (const auto *FTD = llvm::dyn_cast<FunctionTemplateDecl>(D)) in getApproximateType() local 5511 ReturnType = FTD->getTemplatedDecl()->getReturnType(); in getApproximateType() 6270 } else if (auto *FTD = dyn_cast<FunctionTemplateDecl>(C)) { in ProduceConstructorSignatureHelp() local 6272 isInitListConstructor(FTD->getTemplatedDecl())) in ProduceConstructorSignatureHelp() 6276 FTD, DeclAccessPair::make(FTD, C->getAccess()), in ProduceConstructorSignatureHelp()
|
| H A D | SemaDeclCXX.cpp | 1190 if (FunctionTemplateDecl *FTD = in checkTupleLikeDecomposition() local 1192 TemplateParameterList *TPL = FTD->getTemplateParameters(); in checkTupleLikeDecomposition() 1593 if (auto *FTD = FD->getDescribedFunctionTemplate()) in CheckCXXDefaultArguments() local 1594 if (FTD->isMemberSpecialization()) in CheckCXXDefaultArguments() 6002 } else if (auto *FTD = dyn_cast<FunctionTemplateDecl>(D)) { in CheckAbstractClassUsage() local 6003 CheckAbstractClassUsage(Info, FTD->getTemplatedDecl()); in CheckAbstractClassUsage() 10298 if (FunctionTemplateDecl *FTD = FD->getDescribedFunctionTemplate()) in ActOnReenterTemplateScope() local 10299 ParameterLists.push_back(FTD->getTemplateParameters()); in ActOnReenterTemplateScope() 17226 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in ActOnFriendFunctionDecl() local 17227 FD = FTD->getTemplatedDecl(); in ActOnFriendFunctionDecl() [all …]
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | InterfaceStubFunctionsConsumer.cpp | 150 void HandleTemplateSpecializations(const FunctionTemplateDecl &FTD, in HandleTemplateSpecializations() argument 152 for (const auto *D : FTD.specializations()) in HandleTemplateSpecializations()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidBindCheck.cpp | 415 const auto *FTD = dyn_cast<FunctionTemplateDecl>(D); in findCandidateCallOperators() local 416 if (!FTD) in findCandidateCallOperators() 418 const FunctionDecl *FD = FTD->getTemplatedDecl(); in findCandidateCallOperators()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineInline.cpp | 347 if (auto *FTD = FD->getDescribedFunctionTemplate()) in getBeginLoc() local 348 return FTD->getBeginLoc(); in getBeginLoc()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 165 if (const auto *FTD = FD->getDescribedFunctionTemplate()) in run() local 166 D = FTD; in run() 250 if (const auto *FTD = CMD->getDescribedFunctionTemplate()) in MatchClassMethod() local 251 MoveTool->getUnremovedDeclsInOldHeader().erase(FTD); in MatchClassMethod()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CXType.cpp | 250 if (const FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(D)) in clang_getCursorType() local 251 return MakeCXType(FTD->getTemplatedDecl()->getType(), TU); in clang_getCursorType()
|