Home
last modified time | relevance | path

Searched refs:ClassTemplate (Results 1 – 22 of 22) sorted by relevance

/external/clang/test/CodeGenCXX/
Dpredefined-expr.cpp128 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 …]
Dinline-functions.cpp35 template <typename T> class ClassTemplate { class
46 ClassTemplate<C> ct; in func()
/external/clang/lib/Sema/
DSemaTemplate.cpp2080 } 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 …]
DSemaTemplateInstantiateDecl.cpp955 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 …]
DSemaCXXScopeSpec.cpp102 if (ClassTemplateDecl *ClassTemplate in computeDeclContext() local
112 = ClassTemplate->getInjectedClassNameSpecialization(); in computeDeclContext()
114 return ClassTemplate->getTemplatedDecl(); in computeDeclContext()
121 = ClassTemplate->findPartialSpecialization(ContextType)) in computeDeclContext()
DSemaTemplateInstantiate.cpp136 if (ClassTemplateDecl *ClassTemplate = Rec->getDescribedClassTemplate()) { in getTemplateInstantiationArgs() local
137 QualType T = ClassTemplate->getInjectedClassNameSpecialization(); in getTemplateInstantiationArgs()
141 if (ClassTemplate->isMemberSpecialization()) in getTemplateInstantiationArgs()
DSemaCodeComplete.cpp785 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()
DSemaTemplateDeduction.cpp2159 ClassTemplateDecl *ClassTemplate = Partial->getSpecializedTemplate(); in FinishTemplateArgumentDeduction() local
2182 if (S.CheckTemplateArgumentList(ClassTemplate, Partial->getLocation(), in FinishTemplateArgumentDeduction()
2187 = ClassTemplate->getTemplateParameters(); in FinishTemplateArgumentDeduction()
DSemaLookup.cpp1786 if (ClassTemplateDecl *ClassTemplate in addAssociatedClassesAndNamespaces() local
1788 DeclContext *Ctx = ClassTemplate->getDeclContext(); in addAssociatedClassesAndNamespaces()
/external/clang/include/clang/Basic/
DDeclNodes.td52 def ClassTemplate : DDecl<RedeclarableTemplate>;
/external/clang/lib/Serialization/
DASTCommon.cpp167 case Decl::ClassTemplate: in isRedeclarableDeclKind()
/external/clang/lib/AST/
DComment.cpp199 case Decl::ClassTemplate: { in fill()
DASTImporter.cpp4031 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()
DDeclBase.cpp541 case ClassTemplate: in getIdentifierNamespaceForKind()
/external/clang/include/clang/Sema/
DTemplate.h499 ClassTemplateDecl *ClassTemplate,
/external/clang/lib/Frontend/
DASTConsumers.cpp461 case Decl::ClassTemplate: { in PrintDeclContext()
/external/clang/include/clang/AST/
DDeclTemplate.h1845 : 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/
DASTMatchersTest.cpp350 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/
DCIndex.cpp3393 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()
DIndexingContext.cpp1038 case Decl::ClassTemplate: in getEntityInfo()
/external/clang/lib/CodeGen/
DCGDecl.cpp53 case Decl::ClassTemplate: in EmitDecl()
DCodeGenModule.cpp2757 case Decl::ClassTemplate: in EmitTopLevelDecl()