Home
last modified time | relevance | path

Searched refs:TemplateDecl (Results 1 – 25 of 36) 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.cpp448 TemplateDecl *FromTD, *ToTD;
496 void SetNode(TemplateDecl *FromTD, TemplateDecl *ToTD) { in SetNode()
602 void GetNode(TemplateDecl *&FromTD, TemplateDecl *&ToTD) { in GetNode()
998 TemplateDecl *FromDecl, *ToDecl; in DiffTemplate()
1108 TemplateDecl *&ArgDecl) { in GetTemplateDecl()
1113 TemplateDecl *DefaultTD = 0; in GetTemplateDecl()
1215 TemplateDecl *FromTD, *ToTD; in TreeToString()
1241 TemplateDecl *FromTD, *ToTD; in TreeToString()
1396 void PrintTemplateTemplate(TemplateDecl *FromTD, TemplateDecl *ToTD, in PrintTemplateTemplate()
DItaniumMangle.cpp294 void mangleName(const TemplateDecl *TD,
303 void mangleUnscopedTemplateName(const TemplateDecl *ND);
310 void mangleNestedName(const TemplateDecl *TD,
316 void mangleTemplatePrefix(const TemplateDecl *ND);
511 static const TemplateDecl *
515 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
564 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleName()
581 void CXXNameMangler::mangleName(const TemplateDecl *TD, in mangleName()
604 void CXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *ND) { in mangleUnscopedTemplateName()
624 if (TemplateDecl *TD = Template.getAsTemplateDecl()) in mangleUnscopedTemplateName()
[all …]
DMicrosoftMangle.cpp96 void mangleUnscopedTemplateName(const TemplateDecl *ND);
97 void mangleTemplateInstantiationName(const TemplateDecl *TD,
369 static const TemplateDecl *
374 if (const TemplateDecl *TD = FD->getPrimaryTemplate()) { in isTemplate()
426 if (const TemplateDecl *TD = isTemplate(ND, TemplateArgs)) { in mangleUnqualifiedName()
788 const TemplateDecl *TD, in mangleTemplateInstantiationName()
809 MicrosoftCXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *TD) { in mangleUnscopedTemplateName()
DDecl.cpp310 if (TemplateDecl *Template in getLVForTemplateArgumentList()
698 } else if (const TemplateDecl *temp = dyn_cast<TemplateDecl>(D)) { in getLVForNamespaceScopeDecl()
825 } else if (const TemplateDecl *temp = dyn_cast<TemplateDecl>(D)) { in getLVForClassMember()
843 assert(!explicitSpecSuppressor || !isa<TemplateDecl>(explicitSpecSuppressor)); in getLVForClassMember()
984 if (const TemplateDecl *TD = dyn_cast<TemplateDecl>(this)) in getExplicitVisibility()
DDeclTemplate.cpp598 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params), in TemplateTemplateParmDecl()
685 void TemplateDecl::anchor() { } in anchor()
DDeclPrinter.cpp69 void VisitTemplateDecl(const TemplateDecl *D);
848 void DeclPrinter::VisitTemplateDecl(const TemplateDecl *D) { in VisitTemplateDecl()
DDumpXML.cpp630 void visitTemplateDeclChildren(TemplateDecl *D) { in visitTemplateDeclChildren()
/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.h28 class TemplateDecl; variable
227 class TemplateDecl : public NamedDecl {
231 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
237 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
242 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() function
527 class RedeclarableTemplateDecl : public TemplateDecl,
626 : TemplateDecl(DK, DC, L, Name, Params, Decl), Common() { } in RedeclarableTemplateDecl()
1195 class TemplateTemplateParmDecl : public TemplateDecl,
1219 : TemplateDecl(TemplateTemplateParm, DC, L, Id, Params),
/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>
DIndexTypeSourceInfo.cpp80 if (const TemplateDecl *D = T->getTemplateName().getAsTemplateDecl()) in VisitTemplateSpecializationTypeLoc()
DCXCursor.cpp559 CXCursor cxcursor::MakeCursorTemplateRef(const TemplateDecl *Template, in MakeCursorTemplateRef()
568 std::pair<const TemplateDecl *, SourceLocation>
571 return std::make_pair(static_cast<const TemplateDecl *>(C.data[0]), in getCursorTemplateRef()
DIndexingContext.cpp1126 if (const TemplateDecl *Template = dyn_cast<TemplateDecl>(D)) in getRefCursor()
DCIndexUSRs.cpp715 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in VisitTemplateName()
/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.cpp51 if (isa<TemplateDecl>(D)) { in isAcceptableTemplateName()
192 TemplateDecl *TD = cast<TemplateDecl>((*R.begin())->getUnderlyingDecl()); in isTemplateName()
342 if (TemplateDecl *Template = Found.getAsSingle<TemplateDecl>()) in LookupTemplateName()
473 TemplateDecl *Sema::AdjustDeclIfTemplate(Decl *&D) { in AdjustDeclIfTemplate()
474 if (TemplateDecl *Temp = dyn_cast_or_null<TemplateDecl>(D)) { in AdjustDeclIfTemplate()
1660 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
1766 if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) { in MatchTemplateParametersToScopeSpecifier()
1934 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in NoteAllFoundTemplates()
1970 TemplateDecl *Template = Name.getAsTemplateDecl(); in CheckTemplateIdType()
2460 if (TemplateDecl *Decl = Name.getAsTemplateDecl()) in CheckTemplateTypeArgument()
[all …]
DSemaTemplateInstantiate.cpp219 TemplateDecl *Template, in InstantiatingTemplate()
370 TemplateDecl *Template, NamedDecl *Param, in InstantiatingTemplate()
494 TemplateDecl *Template = cast<TemplateDecl>(Active->Entity); in PrintInstantiationStack()
570 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
589 if (TemplateDecl *Template = dyn_cast<TemplateDecl>(Active->Template)) in PrintInstantiationStack()
DSemaTemplateDeduction.cpp405 TemplateDecl *ParamDecl = Param.getAsTemplateDecl(); in DeduceTemplateArguments()
4010 static bool isSameTemplate(TemplateDecl *T1, TemplateDecl *T2) { in isSameTemplate()
4287 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in MarkUsedTemplateParameters()
DSemaDecl.cpp465 if (TemplateDecl *TplDecl = TplName.getAsTemplateDecl()) { in DiagnoseUnknownTypeName()
510 if (CheckTemplate && isa<TemplateDecl>(*I)) in isResultTypeOrTemplate()
672 UnderlyingFirstDecl && isa<TemplateDecl>(UnderlyingFirstDecl)) { in ClassifyName()
798 TemplateDecl *TD in ClassifyName()
799 = cast<TemplateDecl>((*Result.begin())->getUnderlyingDecl()); in ClassifyName()
855 if (isa<TemplateDecl>(FirstDecl) && !isa<FunctionTemplateDecl>(FirstDecl)) in ClassifyName()
857 TemplateName(cast<TemplateDecl>(FirstDecl))); in ClassifyName()
8869 if (TemplateDecl *TD = dyn_cast<TemplateDecl>(D)) in ActOnFinishDelayedAttribute()
DTreeTransform.h968 TemplateDecl *Template);
2903 TemplateDecl *Template = QTN->getTemplateDecl(); in TransformTemplateName()
2906 TemplateDecl *TransTemplate in TransformTemplateName()
2907 = cast_or_null<TemplateDecl>(getDerived().TransformDecl(NameLoc, in TransformTemplateName()
2945 if (TemplateDecl *Template = Name.getAsTemplateDecl()) { in TransformTemplateName()
2946 TemplateDecl *TransTemplate in TransformTemplateName()
2947 = cast_or_null<TemplateDecl>(getDerived().TransformDecl(NameLoc, in TransformTemplateName()
9148 TemplateDecl *Template) { in RebuildTemplateName()
/external/clang/include/clang/Sema/
DSema.h151 class TemplateDecl; variable
4779 TemplateDecl *AdjustDeclIfTemplate(Decl *&Decl);
4968 SubstDefaultTemplateArgumentIfAvailable(TemplateDecl *Template,
5025 bool CheckTemplateArgumentList(TemplateDecl *Template,
5863 TemplateDecl *Template,
5907 TemplateDecl *Template,
/external/clang/lib/Serialization/
DASTReaderDecl.cpp252 void VisitTemplateDecl(TemplateDecl *D);
1287 void ASTDeclReader::VisitTemplateDecl(TemplateDecl *D) { in VisitTemplateDecl()
1778 if (isa<TemplateDecl>(X)) in isSameEntity()
DASTWriterDecl.cpp89 void VisitTemplateDecl(TemplateDecl *D);
1062 void ASTDeclWriter::VisitTemplateDecl(TemplateDecl *D) { in VisitTemplateDecl()

12