/external/clang/test/CodeGenCXX/ |
D | predefined-expr.cpp | 128 class ClassTemplate { class 176 void withTemplateParameter1(ClassTemplate<int>) { in withTemplateParameter1() 182 void withTemplateParameter2(ClassTemplate<Base *>) { in withTemplateParameter2() 188 ClassTemplate<int> functionReturingTemplate1() { in functionReturingTemplate1() 192 return ClassTemplate<int>(); in functionReturingTemplate1() 195 ClassTemplate<Base *> functionReturingTemplate2() { in functionReturingTemplate2() 199 return ClassTemplate<Base *>(); in functionReturingTemplate2() 397 template <typename T, template <typename> class Param = NS::ClassTemplate> 455 b.withTemplateParameter1(NS::ClassTemplate<int>()); in main() 456 b.withTemplateParameter2(NS::ClassTemplate<NS::Base *>()); in main() [all …]
|
D | inline-functions.cpp | 35 template <typename T> class ClassTemplate { class 46 ClassTemplate<C> ct; in func()
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 2080 } else if (ClassTemplateDecl *ClassTemplate in CheckTemplateIdType() local 2086 = ClassTemplate->findSpecialization(Converted.data(), Converted.size(), in CheckTemplateIdType() 2093 ClassTemplate->getTemplatedDecl()->getTagKind(), in CheckTemplateIdType() 2094 ClassTemplate->getDeclContext(), in CheckTemplateIdType() 2095 ClassTemplate->getTemplatedDecl()->getLocStart(), in CheckTemplateIdType() 2096 ClassTemplate->getLocation(), in CheckTemplateIdType() 2097 ClassTemplate, in CheckTemplateIdType() 2100 ClassTemplate->AddSpecialization(Decl, InsertPos); in CheckTemplateIdType() 2101 if (ClassTemplate->isOutOfLine()) in CheckTemplateIdType() 2102 Decl->setLexicalDeclContext(ClassTemplate->getLexicalDeclContext()); in CheckTemplateIdType() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 955 ClassTemplateDecl *ClassTemplate = D->getSpecializedTemplate(); in VisitClassTemplatePartialSpecializationDecl() local 960 = Owner->lookup(ClassTemplate->getDeclName()); in VisitClassTemplatePartialSpecializationDecl() 2241 ClassTemplateDecl *ClassTemplate, in InstantiateClassTemplatePartialSpecialization() argument 2266 if (SemaRef.CheckTemplateArgumentList(ClassTemplate, in InstantiateClassTemplatePartialSpecialization() 2277 = ClassTemplate->findPartialSpecialization(Converted.data(), in InstantiateClassTemplatePartialSpecialization() 2283 = SemaRef.Context.getTemplateSpecializationType(TemplateName(ClassTemplate), in InstantiateClassTemplatePartialSpecialization() 2296 TemplateName(ClassTemplate), in InstantiateClassTemplatePartialSpecialization() 2333 ClassTemplate, in InstantiateClassTemplatePartialSpecialization() 2339 ClassTemplate->getNextPartialSpecSequenceNumber()); in InstantiateClassTemplatePartialSpecialization() 2349 ClassTemplate->AddPartialSpecialization(InstPartialSpec, /*InsertPos=*/0); in InstantiateClassTemplatePartialSpecialization() [all …]
|
D | SemaCXXScopeSpec.cpp | 102 if (ClassTemplateDecl *ClassTemplate in computeDeclContext() local 112 = ClassTemplate->getInjectedClassNameSpecialization(); in computeDeclContext() 114 return ClassTemplate->getTemplatedDecl(); in computeDeclContext() 121 = ClassTemplate->findPartialSpecialization(ContextType)) in computeDeclContext()
|
D | SemaTemplateInstantiate.cpp | 136 if (ClassTemplateDecl *ClassTemplate = Rec->getDescribedClassTemplate()) { in getTemplateInstantiationArgs() local 137 QualType T = ClassTemplate->getInjectedClassNameSpecialization(); in getTemplateInstantiationArgs() 141 if (ClassTemplate->isMemberSpecialization()) in getTemplateInstantiationArgs()
|
D | SemaCodeComplete.cpp | 785 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(D)) in MaybeAddConstructorResults() local 786 Record = ClassTemplate->getTemplatedDecl(); in MaybeAddConstructorResults() 1100 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsNestedNameSpecifier() local 1101 ND = ClassTemplate->getTemplatedDecl(); in IsNestedNameSpecifier() 1114 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsClassOrStruct() local 1115 ND = ClassTemplate->getTemplatedDecl(); in IsClassOrStruct() 1129 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsUnion() local 1130 ND = ClassTemplate->getTemplatedDecl(); in IsUnion() 2928 case Decl::ClassTemplate: return CXCursor_ClassTemplate; in getCursorKindForDecl()
|
D | SemaTemplateDeduction.cpp | 2159 ClassTemplateDecl *ClassTemplate = Partial->getSpecializedTemplate(); in FinishTemplateArgumentDeduction() local 2182 if (S.CheckTemplateArgumentList(ClassTemplate, Partial->getLocation(), in FinishTemplateArgumentDeduction() 2187 = ClassTemplate->getTemplateParameters(); in FinishTemplateArgumentDeduction()
|
D | SemaLookup.cpp | 1786 if (ClassTemplateDecl *ClassTemplate in addAssociatedClassesAndNamespaces() local 1788 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
|
/external/clang/include/clang/Basic/ |
D | DeclNodes.td | 52 def ClassTemplate : DDecl<RedeclarableTemplate>;
|
/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 167 case Decl::ClassTemplate: in isRedeclarableDeclKind()
|
/external/clang/lib/AST/ |
D | Comment.cpp | 199 case Decl::ClassTemplate: { in fill()
|
D | ASTImporter.cpp | 4031 ClassTemplateDecl *ClassTemplate in VisitClassTemplateSpecializationDecl() local 4034 if (!ClassTemplate) in VisitClassTemplateSpecializationDecl() 4038 DeclContext *DC = ClassTemplate->getDeclContext(); in VisitClassTemplateSpecializationDecl() 4063 = ClassTemplate->findSpecialization(TemplateArgs.data(), in VisitClassTemplateSpecializationDecl() 4084 ClassTemplate, in VisitClassTemplateSpecializationDecl() 4091 ClassTemplate->AddSpecialization(D2, InsertPos); in VisitClassTemplateSpecializationDecl()
|
D | DeclBase.cpp | 541 case ClassTemplate: in getIdentifierNamespaceForKind()
|
/external/clang/include/clang/Sema/ |
D | Template.h | 499 ClassTemplateDecl *ClassTemplate,
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 461 case Decl::ClassTemplate: { in PrintDeclContext()
|
/external/clang/include/clang/AST/ |
D | DeclTemplate.h | 1845 : RedeclarableTemplateDecl(ClassTemplate, DC, L, Name, Params, Decl) { } 1848 : RedeclarableTemplateDecl(ClassTemplate, 0, SourceLocation(), 1999 static bool classofKind(Kind K) { return K == ClassTemplate; }
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTest.cpp | 350 TEST(ClassTemplate, DoesNotMatchClass) { in TEST() argument 356 TEST(ClassTemplate, MatchesClassTemplate) { in TEST() argument 362 TEST(ClassTemplate, DoesNotMatchClassTemplateExplicitSpecialization) { in TEST() argument 369 TEST(ClassTemplate, DoesNotMatchClassTemplatePartialSpecialization) { in TEST() argument
|
/external/clang/tools/libclang/ |
D | CIndex.cpp | 3393 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(D)) { in clang_getCursorDisplayName() local 3396 OS << *ClassTemplate; in clang_getCursorDisplayName() 3398 TemplateParameterList *Params = ClassTemplate->getTemplateParameters(); in clang_getCursorDisplayName() 4515 case Decl::ClassTemplate: { in clang_getCursorDefinition() 5695 case Decl::ClassTemplate: in getDeclLanguage()
|
D | IndexingContext.cpp | 1038 case Decl::ClassTemplate: in getEntityInfo()
|
/external/clang/lib/CodeGen/ |
D | CGDecl.cpp | 53 case Decl::ClassTemplate: in EmitDecl()
|
D | CodeGenModule.cpp | 2757 case Decl::ClassTemplate: in EmitTopLevelDecl()
|