| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | TemplateName.cpp | 88 assert(isa<TemplateDecl>(ND)); in getKind() 108 TemplateDecl *TemplateName::getAsTemplateDecl() const { in getAsTemplateDecl() 111 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl() 113 assert(isa<TemplateDecl>(TemplateOrUsing)); in getAsTemplateDecl() 114 return cast<TemplateDecl>(TemplateOrUsing); in getAsTemplateDecl() 124 return cast<TemplateDecl>(USD->getTargetDecl()); in getAsTemplateDecl() 181 TemplateDecl *Decl = getAsTemplateDecl(); in getNameToSubstitute() 189 Decl = cast<TemplateDecl>(Decl->getMostRecentDecl()); in getNameToSubstitute() 191 Decl = cast<TemplateDecl>(Decl->getPreviousDecl()); in getNameToSubstitute() 216 if (TemplateDecl *Template = getAsTemplateDecl()) { in getDependence() [all …]
|
| H A D | ASTDiagnostic.cpp | 595 TemplateDecl *TD = nullptr; 644 void SetTemplateDiff(TemplateDecl *FromTD, TemplateDecl *ToTD, in SetTemplateDiff() 674 void SetTemplateTemplateDiff(TemplateDecl *FromTD, TemplateDecl *ToTD, in SetTemplateTemplateDiff() 812 void GetTemplateDiff(TemplateDecl *&FromTD, TemplateDecl *&ToTD, in GetTemplateDiff() 833 void GetTemplateTemplateDiff(TemplateDecl *&FromTD, TemplateDecl *&ToTD) { in GetTemplateTemplateDiff() 1200 TemplateDecl *FromDecl = GetTemplateDecl(FromIter); in DiffTemplateTemplates() 1201 TemplateDecl *ToDecl = GetTemplateDecl(ToIter); in DiffTemplateTemplates() 1465 static TemplateDecl *GetTemplateDecl(const TSTiterator &Iter) { in GetTemplateDecl() 1521 TemplateDecl *FromTD, *ToTD; in TreeToString() 1590 TemplateDecl *FromTD, *ToTD; in TreeToString() [all …]
|
| H A D | ASTDumper.cpp | 118 template <typename TemplateDecl> 119 void ASTDumper::dumpTemplateDecl(const TemplateDecl *D, bool DumpExplicitInst) { in dumpTemplateDecl()
|
| H A D | ItaniumMangle.cpp | 486 void mangleTemplateName(const TemplateDecl *TD, 515 void mangleNestedName(const TemplateDecl *TD, 951 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl()); in asTemplateName() 952 return TemplateName(const_cast<TemplateDecl*>(TD)); in asTemplateName() 1116 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleUnscopedTemplateName() 2145 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleTemplatePrefix() 2225 TemplateDecl *TD = nullptr; in mangleType() 2374 TemplateDecl *TD = TN.getAsTemplateDecl(); in mangleUnresolvedTypeOrSimpleId() 2407 TemplateDecl *TD = TN.getAsTemplateDecl(); in mangleUnresolvedTypeOrSimpleId() 5257 TemplateDecl *ResolvedTemplate = nullptr; [all …]
|
| H A D | DeclTemplate.cpp | 230 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function in TemplateDecl 235 void TemplateDecl::anchor() {} in anchor() 237 void TemplateDecl:: 245 bool TemplateDecl::hasAssociatedConstraints() const { in hasAssociatedConstraints() 804 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params), in TemplateTemplateParmDecl() 1481 : TemplateDecl(BuiltinTemplate, DC, SourceLocation(), Name, in BuiltinTemplateDecl()
|
| H A D | DeclarationName.cpp | 295 DeclarationNameTable::getCXXDeductionGuideName(TemplateDecl *Template) { in getCXXDeductionGuideName() 296 Template = cast<TemplateDecl>(Template->getCanonicalDecl()); in getCXXDeductionGuideName()
|
| /llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRFindingAction.cpp | 80 } else if (const auto *TemplateDecl = in Find() local 82 handleClassTemplateDecl(TemplateDecl); in Find() 128 void handleClassTemplateDecl(const ClassTemplateDecl *TemplateDecl) { in handleClassTemplateDecl() argument 129 for (const auto *Specialization : TemplateDecl->specializations()) in handleClassTemplateDecl() 132 TemplateDecl->getPartialSpecializations(PartialSpecs); in handleClassTemplateDecl() 135 addUSRsOfCtorDtors(TemplateDecl->getTemplatedDecl()); in handleClassTemplateDecl()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ASTDumper.h | 40 template <typename TemplateDecl> 41 void dumpTemplateDecl(const TemplateDecl *D, bool DumpExplicitInst);
|
| H A D | DeclarationName.h | 39 class TemplateDecl; variable 81 TemplateDecl *Template; in alignas() 88 CXXDeductionGuideNameExtra(TemplateDecl *TD) in alignas() 460 TemplateDecl *getCXXDeductionGuideTemplate() const { in getCXXDeductionGuideTemplate() 633 DeclarationName getCXXDeductionGuideName(TemplateDecl *TD);
|
| H A D | TemplateName.h | 41 class TemplateDecl; variable 241 explicit TemplateName(TemplateDecl *Template); 263 TemplateDecl *getAsTemplateDecl() const;
|
| H A D | DeclTemplate.h | 53 class TemplateDecl; variable 409 class TemplateDecl : public NamedDecl { 421 : TemplateDecl(DK, DC, L, Name, Params, nullptr) {} in TemplateDecl() 762 class RedeclarableTemplateDecl : public TemplateDecl, 1628 : public TemplateDecl, 1651 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params), 1790 class BuiltinTemplateDecl : public TemplateDecl { 3262 class ConceptDecl : public TemplateDecl, public Mergeable<ConceptDecl> { 3268 : TemplateDecl(Concept, DC, L, Name, Params), 3384 inline TemplateDecl *getAsTypeTemplateDecl(Decl *D) { [all …]
|
| H A D | JSONNodeDumper.h | 402 template <typename TemplateDecl> 403 void writeTemplateDecl(const TemplateDecl *TD, bool DumpExplicitInst) { in writeTemplateDecl()
|
| /llvm-project-15.0.7/clang/tools/libclang/ |
| H A D | CIndexCXX.cpp | 56 if (const TemplateDecl *Template in clang_getTemplateCursorKind() 57 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C))) in clang_getTemplateCursorKind()
|
| H A D | CXCursor.h | 40 class TemplateDecl; variable 96 CXCursor MakeCursorTemplateRef(const TemplateDecl *Template, SourceLocation Loc, 101 std::pair<const TemplateDecl *, SourceLocation>
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | ASTImporterGenericRedeclTest.cpp | 148 if (auto *PrevT = dyn_cast<TemplateDecl>(Prev)) { in CheckPreviousDecl() 150 auto *CurrentT = cast<TemplateDecl>(Current); in CheckPreviousDecl() 194 if (auto *ToT = dyn_cast<TemplateDecl>(ToD)) { in TypedTest_PrototypeShouldBeImportedAsAPrototypeWhenThereIsNoDefinition() 210 if (auto *ToT = dyn_cast<TemplateDecl>(ToD)) { in TypedTest_DefinitionShouldBeImportedAsADefinition() 321 if (auto *ToT0 = dyn_cast<TemplateDecl>(To0)) { in TypedTest_ImportDefinitions()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | LLVMConventionsChecker.cpp | 87 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsStdVector() 101 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsSmallVector()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ExpectedTypes.cpp | 47 if (auto *Template = dyn_cast_or_null<TemplateDecl>(D)) in typeOfCompletion()
|
| H A D | AST.cpp | 549 static int paramIndex(const TemplateDecl &TD, NamedDecl &Param) { in paramIndex() 602 if (TemplateDecl *TD = TemplatedDecl->getDescribedTemplate()) { in getOnlyInstantiation() 706 if (const auto *TemplateDecl = Callee->getPrimaryTemplate()) { in getFunctionPackType() local 707 auto TemplateParams = TemplateDecl->getTemplateParameters()->asArray(); in getFunctionPackType()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | CodeCompleteConsumer.h | 1056 const TemplateDecl *Template; 1089 OverloadCandidate(const TemplateDecl *Template) in OverloadCandidate() 1114 const TemplateDecl *getTemplate() const { in getTemplate()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/ |
| H A D | ExplicitConstructorCheck.cpp | 72 if (const TemplateDecl *TD = TS->getTemplateName().getAsTemplateDecl()) in isStdInitializerList()
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | LexicallyOrderedRecursiveASTVisitorTest.cpp | 85 if (isa<DeclContext>(D) || isa<TemplateDecl>(D)) in VisitNamedDecl()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/ |
| H A D | InsertionPoint.cpp | 35 if (auto *TD = llvm::dyn_cast<TemplateDecl>(D)) in insertionDecl()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplate.cpp | 105 if (isa<TemplateDecl>(D)) { in getAsTemplateNameDecl() 287 TemplateDecl *TD = cast<TemplateDecl>(D); in isTemplateName() 341 TemplateDecl *TD = R.getAsSingle<TemplateDecl>(); in isDeductionGuideName() 904 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) { in AdjustDeclIfTemplate() 905 if (TemplateDecl *Temp = dyn_cast_or_null<TemplateDecl>(D)) { in AdjustDeclIfTemplate() 3727 TemplateDecl *Template = Name.getAsTemplateDecl(); in CheckTemplateIdType() 4732 if (TemplateDecl *TD = Name.getAsTemplateDecl()) { in diagnoseMissingTemplateArguments() 4792 if (auto *TD = R.getAsSingle<TemplateDecl>()) { in BuildTemplateIdExpr() 5147 TemplateDecl *Template, in SubstDefaultTemplateArgument() 9621 TemplateDecl *TD = Name.getAsTemplateDecl(); in ActOnExplicitInstantiation() [all …]
|
| H A D | SemaTemplateInstantiate.cpp | 280 TemplateDecl *Template, ArrayRef<TemplateArgument> TemplateArgs, in InstantiatingTemplate() 304 TemplateDecl *Template, in InstantiatingTemplate() 365 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate() 593 TemplateDecl *Template = cast<TemplateDecl>(Active->Template); in PrintInstantiationStack() 633 if (auto *D = dyn_cast<TemplateDecl>(Active->Entity)) { in PrintInstantiationStack() 679 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack() 698 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack() 810 else if (isa<TemplateDecl>(Active->Entity)) in PrintInstantiationStack()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | ASTConsumers.cpp | 103 if (auto *TD = dyn_cast<TemplateDecl>(D)) in print()
|