Home
last modified time | relevance | path

Searched refs:TemplateDecl (Results 1 – 25 of 43) sorted by relevance

12

/external/clang/lib/AST/
DTemplateName.cpp55 if (Storage.is<TemplateDecl *>()) in getKind()
71 TemplateDecl *TemplateName::getAsTemplateDecl() const { in getAsTemplateDecl()
72 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>()) in getAsTemplateDecl()
85 if (TemplateDecl *Template = getAsTemplateDecl()) { in isDependent()
112 if (TemplateDecl *Template = getAsTemplateDecl()) { in containsUnexpandedParameterPack()
130 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>()) in print()
DASTDiagnostic.cpp538 TemplateDecl *FromTD, *ToTD;
593 void SetNode(TemplateDecl *FromTD, TemplateDecl *ToTD) { in SetNode()
708 void GetNode(TemplateDecl *&FromTD, TemplateDecl *&ToTD) { in GetNode()
987 TemplateDecl *FromDecl = GetTemplateDecl(FromIter, FromDefaultTemplateDecl); in DiffTemplateTemplates()
988 TemplateDecl *ToDecl = GetTemplateDecl(ToIter, ToDefaultTemplateDecl); in DiffTemplateTemplates()
1358 static TemplateDecl *GetTemplateDecl(const TSTiterator &Iter, in GetTemplateDecl()
1363 TemplateDecl *DefaultTD = nullptr; in GetTemplateDecl()
1458 TemplateDecl *FromTD, *ToTD; in TreeToString()
1486 TemplateDecl *FromTD, *ToTD; in TreeToString()
1646 void PrintTemplateTemplate(TemplateDecl *FromTD, TemplateDecl *ToTD, in PrintTemplateTemplate()
DItaniumMangle.cpp337 void mangleName(const TemplateDecl *TD,
346 void mangleUnscopedTemplateName(const TemplateDecl *ND);
355 void mangleNestedName(const TemplateDecl *TD,
361 void mangleTemplatePrefix(const TemplateDecl *ND, bool NoFunction=false);
556 static const TemplateDecl *
560 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
608 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleName()
625 void CXXNameMangler::mangleName(const TemplateDecl *TD, in mangleName()
648 void CXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *ND) { in mangleUnscopedTemplateName()
666 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in mangleUnscopedTemplateName()
[all …]
DMicrosoftMangle.cpp286 void mangleUnscopedTemplateName(const TemplateDecl *ND);
288 mangleTemplateInstantiationName(const TemplateDecl *TD,
315 void mangleTemplateArgs(const TemplateDecl *TD,
317 void mangleTemplateArg(const TemplateDecl *TD, const TemplateArgument &TA,
660 static const TemplateDecl *
664 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
696 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleUnqualifiedName()
1081 const TemplateDecl *TD, const TemplateArgumentList &TemplateArgs) { in mangleTemplateInstantiationName()
1101 MicrosoftCXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *TD) { in mangleUnscopedTemplateName()
1167 const TemplateDecl *TD, const TemplateArgumentList &TemplateArgs) { in mangleTemplateArgs()
[all …]
DDeclTemplate.cpp629 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params), in TemplateTemplateParmDecl()
726 void TemplateDecl::anchor() { } in anchor()
1258 : TemplateDecl(BuiltinTemplate, DC, SourceLocation(), Name, in BuiltinTemplateDecl()
DDecl.cpp343 if (TemplateDecl *Template = in getLVForTemplateArgumentList()
810 } else if (const auto *temp = dyn_cast<TemplateDecl>(D)) { in getLVForNamespaceScopeDecl()
862 isa<TemplateDecl>(D))) in getLVForClassMember()
966 } else if (const auto *temp = dyn_cast<TemplateDecl>(D)) { in getLVForClassMember()
983 assert(!explicitSpecSuppressor || !isa<TemplateDecl>(explicitSpecSuppressor)); in getLVForClassMember()
1103 if (const auto *TD = dyn_cast<TemplateDecl>(ND)) in getExplicitVisibilityAux()
DASTDumper.cpp441 template<typename TemplateDecl>
442 void VisitTemplateDecl(const TemplateDecl *D, bool DumpExplicitInst);
1291 template<typename TemplateDecl>
1292 void ASTDumper::VisitTemplateDecl(const TemplateDecl *D, in VisitTemplateDecl()
DDeclPrinter.cpp78 void VisitTemplateDecl(const TemplateDecl *D);
935 void DeclPrinter::VisitTemplateDecl(const TemplateDecl *D) { in VisitTemplateDecl()
/external/clang/include/clang/AST/
DTemplateName.h36 class TemplateDecl; variable
176 typedef llvm::PointerUnion4<TemplateDecl *,
210 explicit TemplateName(TemplateDecl *Template) : Storage(Template) { } in TemplateName()
232 TemplateDecl *getAsTemplateDecl() const;
395 TemplateDecl *Template;
400 TemplateDecl *Template) in QualifiedTemplateName()
414 TemplateDecl *getDecl() const { return Template; } in getDecl()
418 TemplateDecl *getTemplateDecl() const { return Template; } in getTemplateDecl()
425 bool TemplateKeyword, TemplateDecl *Template) { in Profile()
DDeclTemplate.h30 class TemplateDecl; variable
333 class TemplateDecl : public NamedDecl {
337 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
344 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
350 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
624 class RedeclarableTemplateDecl : public TemplateDecl,
711 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C), in RedeclarableTemplateDecl()
1325 : public TemplateDecl,
1350 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params),
1488 class BuiltinTemplateDecl : public TemplateDecl {
/external/clang/tools/libclang/
DCIndexCXX.cpp59 if (const TemplateDecl *Template in clang_getTemplateCursorKind()
60 = dyn_cast_or_null<TemplateDecl>(getCursorDecl(C))) in clang_getTemplateCursorKind()
DCXCursor.h41 class TemplateDecl; variable
100 CXCursor MakeCursorTemplateRef(const TemplateDecl *Template, SourceLocation Loc,
105 std::pair<const TemplateDecl *, SourceLocation>
DCXType.cpp917 const ClassTemplateSpecializationDecl *TemplateDecl = in clang_Type_getNumTemplateArguments() local
919 if (!TemplateDecl) in clang_Type_getNumTemplateArguments()
921 return TemplateDecl->getTemplateArgs().size(); in clang_Type_getNumTemplateArguments()
931 const ClassTemplateSpecializationDecl *TemplateDecl = in clang_Type_getTemplateArgumentAsType() local
933 if (!TemplateDecl) in clang_Type_getTemplateArgumentAsType()
935 const TemplateArgumentList &TA = TemplateDecl->getTemplateArgs(); in clang_Type_getTemplateArgumentAsType()
DIndexTypeSourceInfo.cpp80 if (const TemplateDecl *D = T->getTemplateName().getAsTemplateDecl()) in VisitTemplateSpecializationTypeLoc()
DCXCursor.cpp693 CXCursor cxcursor::MakeCursorTemplateRef(const TemplateDecl *Template, in MakeCursorTemplateRef()
702 std::pair<const TemplateDecl *, SourceLocation>
705 return std::make_pair(static_cast<const TemplateDecl *>(C.data[0]), in getCursorTemplateRef()
DIndexingContext.cpp1135 if (const TemplateDecl *Template = dyn_cast<TemplateDecl>(D)) in getRefCursor()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp89 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsStdVector()
103 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsSmallVector()
/external/clang/lib/Sema/
DSemaTemplate.cpp54 if (isa<TemplateDecl>(D)) { in isAcceptableTemplateName()
195 TemplateDecl *TD = cast<TemplateDecl>((*R.begin())->getUnderlyingDecl()); in isTemplateName()
467 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) { in AdjustDeclIfTemplate()
468 if (TemplateDecl *Temp = dyn_cast_or_null<TemplateDecl>(D)) { in AdjustDeclIfTemplate()
1695 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
1832 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
1998 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in NoteAllFoundTemplates()
2089 TemplateDecl *Template = Name.getAsTemplateDecl(); in CheckTemplateIdType()
3088 if (TemplateDecl *Decl = Name.getAsTemplateDecl()) in CheckTemplateTypeArgument()
3205 TemplateDecl *Template, in SubstDefaultTemplateArgument()
[all …]
DSemaTemplateInstantiate.cpp249 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate()
319 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate()
445 TemplateDecl *Template = cast<TemplateDecl>(Active->Entity); in PrintInstantiationStack()
521 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
540 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
DSemaLookup.cpp400 if (auto *DTD = dyn_cast<TemplateDecl>(DUnderlying)) { in isPreferredLookupResult()
401 auto *ETD = cast<TemplateDecl>(EUnderlying); in isPreferredLookupResult()
1379 if (auto *TD = dyn_cast<TemplateDecl>(ND)) in makeMergedDefinitionVisible()
4856 if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) in getDefinitionToImport()
DSemaAccess.cpp1484 } else if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) { in HandleDelayedAccessCheck()
DSemaCXXScopeSpec.cpp903 TemplateDecl *TD = Template.get().getAsTemplateDecl(); in ActOnCXXNestedNameSpecifier()
DSemaDecl.cpp616 if (TemplateDecl *TplDecl = TplName.getAsTemplateDecl()) { in DiagnoseUnknownTypeName()
659 if (CheckTemplate && isa<TemplateDecl>(*I)) in isResultTypeOrTemplate()
820 UnderlyingFirstDecl && isa<TemplateDecl>(UnderlyingFirstDecl)) { in ClassifyName()
944 TemplateDecl *TD in ClassifyName()
945 = cast<TemplateDecl>((*Result.begin())->getUnderlyingDecl()); in ClassifyName()
1004 if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl)) in ClassifyName()
1006 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
5464 if (TemplateDecl *OldTD = dyn_cast<TemplateDecl>(OldDecl)) in checkDLLAttributeRedeclaration()
5466 if (TemplateDecl *NewTD = dyn_cast<TemplateDecl>(NewDecl)) in checkDLLAttributeRedeclaration()
11309 if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) in ActOnFinishDelayedAttribute()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp293 DeclID VisitTemplateDecl(TemplateDecl *D);
1772 DeclID ASTDeclReader::VisitTemplateDecl(TemplateDecl *D) { in VisitTemplateDecl()
2607 if (TemplateDecl *TemplateX = dyn_cast<TemplateDecl>(X)) { in isSameEntity()
2608 TemplateDecl *TemplateY = cast<TemplateDecl>(Y); in isSameEntity()
2992 TemplateDecl *From, in inheritDefaultTemplateArguments()
2993 TemplateDecl *To) { in inheritDefaultTemplateArguments()
3045 if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) in attachPreviousDecl()
3047 cast<TemplateDecl>(Previous), TD); in attachPreviousDecl()
/external/clang/lib/Index/
DUSRGeneration.cpp760 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in VisitTemplateName()

12