reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

tools/clang/include/clang/AST/TemplateName.h
  249   TemplateDecl *getAsTemplateDecl() const;

References

tools/clang/include/clang/ASTMatchers/ASTMatchersInternal.h
  835       return matchesDecl(S->getTemplateName().getAsTemplateDecl(), Finder,
tools/clang/include/clang/Tooling/Refactoring/RecursiveSymbolVisitor.h
   97       if (!visit(TemplateSpecType->getTemplateName().getAsTemplateDecl(),
tools/clang/lib/AST/ASTContext.cpp
 4207     Template.getAsTemplateDecl() &&
 4208     isa<TypeAliasTemplateDecl>(Template.getAsTemplateDecl());
 5340     return DeclarationNameInfo(Name.getAsTemplateDecl()->getDeclName(),
 5392     TemplateDecl *Template = Name.getAsTemplateDecl();
tools/clang/lib/AST/ASTDiagnostic.cpp
 1140       Tree.SetTemplateDiff(FromArgTST->getTemplateName().getAsTemplateDecl(),
 1141                            ToArgTST->getTemplateName().getAsTemplateDecl(),
 1305         FromTST->getTemplateName().getAsTemplateDecl()->getTemplateParameters();
 1307         ToTST->getTemplateName().getAsTemplateDecl()->getTemplateParameters();
 1361     return FromTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl() ==
 1362            ToTST->getTemplateName().getAsTemplateDecl()->getCanonicalDecl();
 1418       return Iter->getAsTemplate().getAsTemplateDecl();
 1420       return Iter.getDesugaredTA().getAsTemplate().getAsTemplateDecl();
 2033     Tree.SetTemplateDiff(FromOrigTST->getTemplateName().getAsTemplateDecl(),
 2034                          ToOrigTST->getTemplateName().getAsTemplateDecl(),
tools/clang/lib/AST/ASTImporter.cpp
 8296     if (ExpectedDecl ToTemplateOrErr = Import(From.getAsTemplateDecl()))
 8328     if (ExpectedDecl ToTemplateOrErr = Import(From.getAsTemplateDecl()))
tools/clang/lib/AST/ASTStructuralEquivalence.cpp
  238   TemplateDecl *TemplateDeclN1 = N1.getAsTemplateDecl();
  239   TemplateDecl *TemplateDeclN2 = N2.getAsTemplateDecl();
tools/clang/lib/AST/CXXInheritance.cpp
  291                   dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl()))
  465   const auto *TD = dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/AST/Decl.cpp
  347               Arg.getAsTemplateOrTemplatePattern().getAsTemplateDecl())
tools/clang/lib/AST/DeclPrinter.cpp
 1101         if (auto T = A.getAsTemplate().getAsTemplateDecl())
tools/clang/lib/AST/ItaniumMangle.cpp
  985   if (TemplateDecl *TD = Template.getAsTemplateDecl())
 1857   if (TemplateDecl *TD = Template.getAsTemplateDecl())
 1919     TD = TN.getAsTemplateDecl();
 2057       TemplateDecl *TD = TN.getAsTemplateDecl();
 3299   if (TemplateDecl *TD = T->getTemplateName().getAsTemplateDecl()) {
 4695   if (TemplateDecl *TD = Template.getAsTemplateDecl())
 4860   if (TemplateDecl *TD = Template.getAsTemplateDecl())
tools/clang/lib/AST/MicrosoftMangle.cpp
 1537         TA.getAsTemplate().getAsTemplateDecl()->getTemplatedDecl();
tools/clang/lib/AST/ODRHash.cpp
  144     AddDecl(Name.getAsTemplateDecl());
tools/clang/lib/AST/QualTypeNames.cpp
   62   TemplateDecl *ArgTDecl = TName.getAsTemplateDecl();
  328     Decl = TST->getTemplateName().getAsTemplateDecl();
tools/clang/lib/AST/TemplateBase.cpp
  309                                                 Template.getAsTemplateDecl())) {
tools/clang/lib/AST/TemplateName.cpp
  107     return sub->getReplacement().getAsTemplateDecl();
  155   TemplateDecl *Decl = getAsTemplateDecl();
  172   if (TemplateDecl *Template = getAsTemplateDecl()) {
  204   if (TemplateDecl *Template = getAsTemplateDecl()) {
tools/clang/lib/AST/Type.cpp
 3871               ->getTemplateName().getAsTemplateDecl()) {
tools/clang/lib/ASTMatchers/ASTMatchFinder.cpp
  843           TemplateType->getTemplateName().getAsTemplateDecl()))
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1116       cast<TypeAliasTemplateDecl>(Ty->getTemplateName().getAsTemplateDecl())
 1826           TA.getAsTemplate().getAsTemplateDecl()->getQualifiedNameAsString()));
tools/clang/lib/Index/IndexBody.cpp
  164         dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/Index/IndexDecl.cpp
   71                                        .getAsTemplateDecl()) {
tools/clang/lib/Index/IndexTypeSourceInfo.cpp
  147     } else if (const TemplateDecl *D = TemplName.getAsTemplateDecl()) {
  185         dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/Index/USRGeneration.cpp
  928   if (TemplateDecl *Template = Name.getAsTemplateDecl()) {
tools/clang/lib/Sema/SemaAttr.cpp
  147           TST->getTemplateName().getAsTemplateDecl()->getTemplatedDecl());
tools/clang/lib/Sema/SemaCXXScopeSpec.cpp
  101                             SpecType->getTemplateName().getAsTemplateDecl())) {
  941   TemplateDecl *TD = Template.getAsTemplateDecl();
tools/clang/lib/Sema/SemaCodeComplete.cpp
 4763               dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl())) {
tools/clang/lib/Sema/SemaDecl.cpp
  195       auto *TD = TST->getTemplateName().getAsTemplateDecl();
 1232   auto *TD = Name.getAsTemplateDecl();
 5161     auto *Template = TN.getAsTemplateDecl();
tools/clang/lib/Sema/SemaDeclCXX.cpp
 9150   TemplateDecl *GuidedTemplateDecl = GuidedTemplate.getAsTemplateDecl();
 9234         auto *TD = SpecifiedName.getAsTemplateDecl();
 9670         TST->getTemplateName().getAsTemplateDecl());
tools/clang/lib/Sema/SemaExprCXX.cpp
  320         if (TemplateDecl *SpecTemplate = SpecName.getAsTemplateDecl()) {
tools/clang/lib/Sema/SemaInit.cpp
 9681       dyn_cast_or_null<ClassTemplateDecl>(TemplateName.getAsTemplateDecl());
 9686     if (auto *TD = TemplateName.getAsTemplateDecl())
tools/clang/lib/Sema/SemaLookup.cpp
 2689                  = dyn_cast<ClassTemplateDecl>(Template.getAsTemplateDecl())) {
 3849               dyn_cast_or_null<ClassTemplateDecl>(TN.getAsTemplateDecl());
tools/clang/lib/Sema/SemaOverload.cpp
10440         if (FirstTN.getAsTemplateDecl()->getName() ==
10441             SecondTN.getAsTemplateDecl()->getName()) {
10450               << FirstTN.getAsTemplateDecl() << SecondTN.getAsTemplateDecl();
10450               << FirstTN.getAsTemplateDecl() << SecondTN.getAsTemplateDecl();
tools/clang/lib/Sema/SemaTemplate.cpp
  951                                                 Name.getAsTemplateDecl());
 2519           dyn_cast_or_null<TemplateTemplateParmDecl>(N.getAsTemplateDecl()))
 2663       if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) {
 2800       if (TemplateDecl *Template = TST->getTemplateName().getAsTemplateDecl()) {
 2965   if (TemplateDecl *Template = Name.getAsTemplateDecl()) {
 3211   TemplateDecl *Template = Name.getAsTemplateDecl();
 3590         dyn_cast_or_null<TypeAliasTemplateDecl>(Template.getAsTemplateDecl())) {
 3678             Arg.getAsTemplateOrTemplatePattern().getAsTemplateDecl());
 3851       dyn_cast_or_null<VarTemplateDecl>(Name.getAsTemplateDecl());
 3857       FnTemplate = dyn_cast_or_null<FunctionTemplateDecl>(Name.getAsTemplateDecl());
 4215   if (TemplateDecl *TD = Name.getAsTemplateDecl()) {
 6876   TemplateDecl *Template = Name.getAsTemplateDecl();
 7693     = dyn_cast_or_null<ClassTemplateDecl>(Name.getAsTemplateDecl());
 7697       << (Name.getAsTemplateDecl() &&
 7698           isa<TemplateTemplateParmDecl>(Name.getAsTemplateDecl()));
 8956   TemplateDecl *TD = Name.getAsTemplateDecl();
 9936     EnableIfTST->getTemplateName().getAsTemplateDecl();
tools/clang/lib/Sema/SemaTemplateDeduction.cpp
  485   TemplateDecl *ParamDecl = Param.getAsTemplateDecl();
 2923     return Spec->getTemplateName().getAsTemplateDecl() != nullptr;
 5326   if (TemplateDecl *Template = Name.getAsTemplateDecl()) {
tools/clang/lib/Sema/SemaTemplateInstantiate.cpp
 1068       assert(!Template.isNull() && Template.getAsTemplateDecl() &&
 1070       return Template.getAsTemplateDecl();
 1188        = dyn_cast_or_null<TemplateTemplateParmDecl>(Name.getAsTemplateDecl())) {
tools/clang/lib/Sema/SemaTemplateVariadic.cpp
  103               Template.getAsTemplateDecl())) {
tools/clang/lib/Sema/SemaType.cpp
 3137       if (auto *TD = TN.getAsTemplateDecl())
tools/clang/lib/Sema/TreeTransform.h
 1067           if (auto *TD = Deduced->getTemplateName().getAsTemplateDecl())
 3898   if (TemplateDecl *Template = Name.getAsTemplateDecl()) {
 6183               Template.getAsTemplateDecl())) {
tools/clang/lib/Serialization/ASTWriter.cpp
 5974     AddDeclRef(Name.getAsTemplateDecl());
tools/clang/lib/StaticAnalyzer/Checkers/LLVMConventionsChecker.cpp
   87   TemplateDecl *TD = TM.getAsTemplateDecl();
  101   TemplateDecl *TD = TM.getAsTemplateDecl();
tools/clang/lib/Tooling/Refactoring/Rename/USRLocFinder.cpp
  411       if (isInUSRSet(TemplateSpecType->getTemplateName().getAsTemplateDecl())) {
  428               TemplateSpecType->getTemplateName().getAsTemplateDecl(),
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  925       FromDecl = TemplateType->getTemplateName().getAsTemplateDecl();
tools/clang/tools/extra/clang-doc/Serialize.cpp
  337       const TemplateDecl *D = Ty->getTemplateName().getAsTemplateDecl();
  452           const TemplateDecl *D = Ty->getTemplateName().getAsTemplateDecl();
tools/clang/tools/extra/clang-tidy/bugprone/ForwardingReferenceOverloadCheck.cpp
   24     if (!Spec || !Spec->getTemplateName().getAsTemplateDecl()) {
   28         Spec->getTemplateName().getAsTemplateDecl()->getTemplatedDecl();
tools/clang/tools/extra/clang-tidy/google/ExplicitConstructorCheck.cpp
   76     if (const TemplateDecl *TD = TS->getTemplateName().getAsTemplateDecl())
tools/clang/tools/extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp
  132       if (const auto *TD = Used->getAsTemplate().getAsTemplateDecl())
tools/clang/tools/extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
   63                                 .getAsTemplateDecl()
tools/clang/tools/extra/clang-tidy/readability/IdentifierNamingCheck.cpp
  766           Ref.getTypePtr()->getTemplateName().getAsTemplateDecl();
tools/clang/tools/extra/clangd/FindTarget.cpp
  268               TST->getTemplateName().getAsTemplateDecl()->getTemplatedDecl(),
  275                          TST->getTemplateName().getAsTemplateDecl()))
  282           if (auto *TD = TST->getTemplateName().getAsTemplateDecl())
  619                                         .getAsTemplateDecl()}},
tools/clang/tools/extra/clangd/SemanticHighlighting.cpp
  212             TL.getTypePtr()->getTemplateName().getAsTemplateDecl())
tools/clang/tools/extra/clangd/XRefs.cpp
 1201         if (TemplateDecl *TD = TN.getAsTemplateDecl()) {
tools/clang/tools/libclang/CIndex.cpp
 1425     return Visit(MakeCursorTemplateRef(Name.getAsTemplateDecl(), Loc, TU));
tools/clang/tools/libclang/CXIndexDataConsumer.cpp
  351       BaseD = TST->getTemplateName().getAsTemplateDecl();
tools/clang/tools/libclang/CXType.cpp
  512                                                          .getAsTemplateDecl();