Home
last modified time | relevance | path

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

123

/external/clang/lib/AST/
DTemplateName.cpp58 TemplateName::TemplateName(TemplateDecl *Template) : Storage(Template) {} in TemplateName()
71 if (Storage.is<TemplateDecl *>()) in getKind()
87 TemplateDecl *TemplateName::getAsTemplateDecl() const { in getAsTemplateDecl()
88 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>()) in getAsTemplateDecl()
135 if (TemplateDecl *Template = getAsTemplateDecl()) { in isDependent()
162 if (TemplateDecl *Template = getAsTemplateDecl()) { in containsUnexpandedParameterPack()
180 if (TemplateDecl *Template = Storage.dyn_cast<TemplateDecl *>()) in print()
DASTDiagnostic.cpp530 TemplateDecl *TD = nullptr;
580 void SetTemplateDiff(TemplateDecl *FromTD, TemplateDecl *ToTD, in SetTemplateDiff()
610 void SetTemplateTemplateDiff(TemplateDecl *FromTD, TemplateDecl *ToTD, in SetTemplateTemplateDiff()
748 void GetTemplateDiff(TemplateDecl *&FromTD, TemplateDecl *&ToTD, in GetTemplateDiff()
769 void GetTemplateTemplateDiff(TemplateDecl *&FromTD, TemplateDecl *&ToTD) { in GetTemplateTemplateDiff()
1124 TemplateDecl *FromDecl = GetTemplateDecl(FromIter); in DiffTemplateTemplates()
1125 TemplateDecl *ToDecl = GetTemplateDecl(ToIter); in DiffTemplateTemplates()
1389 static TemplateDecl *GetTemplateDecl(const TSTiterator &Iter) { in GetTemplateDecl()
1445 TemplateDecl *FromTD, *ToTD; in TreeToString()
1514 TemplateDecl *FromTD, *ToTD; in TreeToString()
[all …]
DItaniumMangle.cpp472 void mangleTemplateName(const TemplateDecl *TD,
485 void mangleUnscopedTemplateName(const TemplateDecl *ND,
500 void mangleNestedName(const TemplateDecl *TD,
506 void mangleTemplatePrefix(const TemplateDecl *ND, bool NoFunction=false);
773 static const TemplateDecl *
777 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
859 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleNameWithAbiTags()
877 void CXXNameMangler::mangleTemplateName(const TemplateDecl *TD, in mangleTemplateName()
902 const TemplateDecl *ND, const AbiTagList *AdditionalAbiTags) { in mangleUnscopedTemplateName()
926 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in mangleUnscopedTemplateName()
[all …]
DMicrosoftMangle.cpp327 void mangleUnscopedTemplateName(const TemplateDecl *ND);
329 mangleTemplateInstantiationName(const TemplateDecl *TD,
357 void mangleTemplateArgs(const TemplateDecl *TD,
359 void mangleTemplateArg(const TemplateDecl *TD, const TemplateArgument &TA,
696 static const TemplateDecl *
700 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
732 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleUnqualifiedName()
1117 const TemplateDecl *TD, const TemplateArgumentList &TemplateArgs) { in mangleTemplateInstantiationName()
1140 MicrosoftCXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *TD) { in mangleUnscopedTemplateName()
1215 const TemplateDecl *TD, const TemplateArgumentList &TemplateArgs) { in mangleTemplateArgs()
[all …]
DDeclTemplate.cpp602 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params), in TemplateTemplateParmDecl()
699 void TemplateDecl::anchor() { } in anchor()
1238 : TemplateDecl(BuiltinTemplate, DC, SourceLocation(), Name, in BuiltinTemplateDecl()
DDecl.cpp344 if (TemplateDecl *Template = in getLVForTemplateArgumentList()
813 } else if (const auto *temp = dyn_cast<TemplateDecl>(D)) { in getLVForNamespaceScopeDecl()
865 isa<TemplateDecl>(D))) in getLVForClassMember()
969 } else if (const auto *temp = dyn_cast<TemplateDecl>(D)) { in getLVForClassMember()
986 assert(!explicitSpecSuppressor || !isa<TemplateDecl>(explicitSpecSuppressor)); in getLVForClassMember()
1106 if (const auto *TD = dyn_cast<TemplateDecl>(ND)) in getExplicitVisibilityAux()
DASTDumper.cpp454 template<typename TemplateDecl>
455 void VisitTemplateDecl(const TemplateDecl *D, bool DumpExplicitInst);
1376 template<typename TemplateDecl>
1377 void ASTDumper::VisitTemplateDecl(const TemplateDecl *D, in VisitTemplateDecl()
/external/clang/include/clang/AST/
DTemplateName.h37 class TemplateDecl; variable
177 typedef llvm::PointerUnion4<TemplateDecl *,
209 explicit TemplateName(TemplateDecl *Template);
229 TemplateDecl *getAsTemplateDecl() const;
367 TemplateDecl *Template;
372 TemplateDecl *Template) in QualifiedTemplateName()
386 TemplateDecl *getDecl() const { return Template; } in getDecl()
390 TemplateDecl *getTemplateDecl() const { return Template; } in getTemplateDecl()
397 bool TemplateKeyword, TemplateDecl *Template) { in Profile()
DDeclTemplate.h31 class TemplateDecl; variable
330 class TemplateDecl : public NamedDecl {
334 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name) in TemplateDecl() function
340 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() function
346 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() function
629 class RedeclarableTemplateDecl : public TemplateDecl,
716 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C), in RedeclarableTemplateDecl()
1328 : public TemplateDecl,
1353 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params),
1490 class BuiltinTemplateDecl : public TemplateDecl {
DDeclBase.h55 class TemplateDecl; variable
909 TemplateDecl *getDescribedTemplate() const;
/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.cpp930 const ClassTemplateSpecializationDecl *TemplateDecl = in clang_Type_getNumTemplateArguments() local
932 if (!TemplateDecl) in clang_Type_getNumTemplateArguments()
934 return TemplateDecl->getTemplateArgs().size(); in clang_Type_getNumTemplateArguments()
944 const ClassTemplateSpecializationDecl *TemplateDecl = in clang_Type_getTemplateArgumentAsType() local
946 if (!TemplateDecl) in clang_Type_getTemplateArgumentAsType()
948 const TemplateArgumentList &TA = TemplateDecl->getTemplateArgs(); in clang_Type_getTemplateArgumentAsType()
DCXCursor.cpp721 CXCursor cxcursor::MakeCursorTemplateRef(const TemplateDecl *Template, in MakeCursorTemplateRef()
730 std::pair<const TemplateDecl *, SourceLocation>
733 return std::make_pair(static_cast<const TemplateDecl *>(C.data[0]), in getCursorTemplateRef()
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp89 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsStdVector()
103 TemplateDecl *TD = TM.getAsTemplateDecl(); in IsSmallVector()
/external/v8/tools/clang/plugins/
DFindBadConstructsConsumer.cpp657 if (TemplateDecl* decl = name.getAsTemplateDecl()) { in CountType()
738 if (TemplateDecl* decl = name.getAsTemplateDecl()) { in IsRefCounted()
923 const TemplateDecl* template_decl = in CheckWeakPtrFactoryMembers()
DCheckIPCVisitor.cpp135 TemplateDecl* decl = spec->getTemplateName().getAsTemplateDecl(); in ValidateCheckedTuple()
/external/clang/lib/Sema/
DSemaTemplate.cpp56 if (isa<TemplateDecl>(D)) { in isAcceptableTemplateName()
197 TemplateDecl *TD = cast<TemplateDecl>((*R.begin())->getUnderlyingDecl()); in isTemplateName()
481 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) { in AdjustDeclIfTemplate()
482 if (TemplateDecl *Temp = dyn_cast_or_null<TemplateDecl>(D)) { in AdjustDeclIfTemplate()
1712 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
1849 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
2015 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in NoteAllFoundTemplates()
2129 TemplateDecl *Template = Name.getAsTemplateDecl(); in CheckTemplateIdType()
3131 if (TemplateDecl *Decl = Name.getAsTemplateDecl()) in CheckTemplateTypeArgument()
3248 TemplateDecl *Template, in SubstDefaultTemplateArgument()
[all …]
DSemaTemplateInstantiate.cpp250 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate()
320 Sema &SemaRef, SourceLocation PointOfInstantiation, TemplateDecl *Template, in InstantiatingTemplate()
446 TemplateDecl *Template = cast<TemplateDecl>(Active->Entity); in PrintInstantiationStack()
518 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
537 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
/external/clang/lib/Index/
DIndexTypeSourceInfo.cpp114 if (const TemplateDecl *D = T->getTemplateName().getAsTemplateDecl()) in VisitTemplateSpecializationTypeLoc()
DIndexingContext.cpp222 if (auto TD = dyn_cast<TemplateDecl>(D)) { in getCanonicalDecl()
DIndexDecl.cpp384 bool VisitTemplateDecl(const TemplateDecl *D) { in VisitTemplateDecl()
/external/clang/lib/Serialization/
DASTReaderDecl.cpp317 DeclID VisitTemplateDecl(TemplateDecl *D);
1855 DeclID ASTDeclReader::VisitTemplateDecl(TemplateDecl *D) { in VisitTemplateDecl()
2722 if (TemplateDecl *TemplateX = dyn_cast<TemplateDecl>(X)) { in isSameEntity()
2723 TemplateDecl *TemplateY = cast<TemplateDecl>(Y); in isSameEntity()
3107 TemplateDecl *From, in inheritDefaultTemplateArguments()
3108 TemplateDecl *To) { in inheritDefaultTemplateArguments()
3157 if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) in attachPreviousDecl()
3159 cast<TemplateDecl>(Previous), TD); in attachPreviousDecl()
/external/clang/unittests/AST/
DASTImporterTest.cpp248 AST_MATCHER_P(TemplateDecl, hasTemplateDecl, in AST_MATCHER_P() argument
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp78 TemplateDecl *ArgTDecl = TName.getAsTemplateDecl(); in getFullyQualifiedTemplateName()

123