/external/clang/test/CodeGenCXX/ |
D | predefined-expr.cpp | 130 class ClassTemplate { class 178 void withTemplateParameter1(ClassTemplate<int>) { in withTemplateParameter1() 184 void withTemplateParameter2(ClassTemplate<Base *>) { in withTemplateParameter2() 190 ClassTemplate<int> functionReturingTemplate1() { in functionReturingTemplate1() 194 return ClassTemplate<int>(); in functionReturingTemplate1() 197 ClassTemplate<Base *> functionReturingTemplate2() { in functionReturingTemplate2() 201 return ClassTemplate<Base *>(); in functionReturingTemplate2() 416 template <typename T, template <typename> class Param = NS::ClassTemplate> 474 b.withTemplateParameter1(NS::ClassTemplate<int>()); in main() 475 b.withTemplateParameter2(NS::ClassTemplate<NS::Base *>()); in main() [all …]
|
D | mangle-ms-templates-memptrs-2.cpp | 52 struct ClassTemplate { struct 53 ClassTemplate() {} in ClassTemplate() function 56 template struct ClassTemplate<&MostGeneral::h>; variable
|
D | dllimport.cpp | 847 template <typename T> struct ClassTemplate { void func() {} }; in func() argument 870 struct __declspec(dllimport) DerivedFromTemplate : public ClassTemplate<int> {}; 871 USEMEMFUNC(ClassTemplate<int>, func) 888 struct DerivedFromTemplateD : public ClassTemplate<double> {}; 889 struct __declspec(dllimport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 890 USEMEMFUNC(ClassTemplate<double>, func) 895 struct __declspec(dllexport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 896 struct __declspec(dllimport) DerivedFromTemplateB2 : public ClassTemplate<bool> {}; 897 USEMEMFUNC(ClassTemplate<bool>, func)
|
D | inline-functions.cpp | 40 template <typename T> class ClassTemplate { class 52 ClassTemplate<C> ct; in func()
|
D | predefined-expr-cxx14.cpp | 51 class ClassTemplate { class 95 ClassTemplate<int> t; in main()
|
D | dllexport.cpp | 857 template <typename T> struct ClassTemplate { void func(); }; struct 858 template <typename T> void ClassTemplate<T>::func() {} in func() 884 struct __declspec(dllexport) DerivedFromTemplate : public ClassTemplate<int> {}; 902 struct DerivedFromTemplateD : public ClassTemplate<double> {}; 903 struct __declspec(dllexport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 909 struct __declspec(dllimport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 910 struct __declspec(dllexport) DerivedFromTemplateB2 : public ClassTemplate<bool> {};
|
/external/clang/test/SemaTemplate/ |
D | ext_ms_template_spec.cpp | 6 class ClassTemplate; // expected-note {{explicitly specialized declaration is here}} 21 class A::ClassTemplate<int>; // expected-warning {{class template specialization of 'ClassTemplate'… member in B::A
|
/external/clang/test/SemaCXX/ |
D | dllexport.cpp | 410 template <typename T> class ClassTemplate {}; class 435 class __declspec(dllexport) DerivedFromTemplate : public ClassTemplate<int> {}; 438 class __declspec(dllexport) DerivedFromTemplate2 : public ClassTemplate<int> {}; 446 class DerivedFromTemplateD : public ClassTemplate<double> {}; 448 class __declspec(dllexport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 451 extern template class ClassTemplate<float>; 452 class __declspec(dllexport) DerivedFromTemplateF : public ClassTemplate<float> {}; 454 class __declspec(dllexport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 456 class __declspec(dllimport) DerivedFromTemplateB2 : public ClassTemplate<bool> {};
|
D | dllimport.cpp | 1347 template <typename T> class ClassTemplate {}; class 1405 class __declspec(dllimport) DerivedFromTemplate : public ClassTemplate<int> {}; 1408 class __declspec(dllimport) DerivedFromTemplate2 : public ClassTemplate<int> {}; 1416 class DerivedFromTemplateD : public ClassTemplate<double> {}; 1418 class __declspec(dllimport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 1421 extern template class ClassTemplate<float>; 1422 class __declspec(dllimport) DerivedFromTemplateF : public ClassTemplate<float> {}; 1424 class __declspec(dllimport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 1426 class __declspec(dllexport) DerivedFromTemplateB2 : public ClassTemplate<bool> {};
|
/external/clang/lib/Sema/ |
D | SemaTemplate.cpp | 2237 } else if (ClassTemplateDecl *ClassTemplate in CheckTemplateIdType() local 2243 = ClassTemplate->findSpecialization(Converted, InsertPos); in CheckTemplateIdType() 2249 ClassTemplate->getTemplatedDecl()->getTagKind(), in CheckTemplateIdType() 2250 ClassTemplate->getDeclContext(), in CheckTemplateIdType() 2251 ClassTemplate->getTemplatedDecl()->getLocStart(), in CheckTemplateIdType() 2252 ClassTemplate->getLocation(), in CheckTemplateIdType() 2253 ClassTemplate, in CheckTemplateIdType() 2255 ClassTemplate->AddSpecialization(Decl, InsertPos); in CheckTemplateIdType() 2256 if (ClassTemplate->isOutOfLine()) in CheckTemplateIdType() 2257 Decl->setLexicalDeclContext(ClassTemplate->getLexicalDeclContext()); in CheckTemplateIdType() [all …]
|
D | SemaTemplateInstantiateDecl.cpp | 1222 ClassTemplateDecl *ClassTemplate = D->getSpecializedTemplate(); in VisitClassTemplatePartialSpecializationDecl() local 1227 = Owner->lookup(ClassTemplate->getDeclName()); in VisitClassTemplatePartialSpecializationDecl() 2665 ClassTemplateDecl *ClassTemplate = D->getSpecializedTemplate(); in VisitClassTemplateSpecializationDecl() local 2666 assert(ClassTemplate->getDeclContext()->isRecord() && in VisitClassTemplateSpecializationDecl() 2674 = Owner->lookup(ClassTemplate->getDeclName()); in VisitClassTemplateSpecializationDecl() 2947 ClassTemplateDecl *ClassTemplate, in InstantiateClassTemplatePartialSpecialization() argument 2975 if (SemaRef.CheckTemplateArgumentList(ClassTemplate, in InstantiateClassTemplatePartialSpecialization() 2986 = ClassTemplate->findPartialSpecialization(Converted, InsertPos); in InstantiateClassTemplatePartialSpecialization() 2991 = SemaRef.Context.getTemplateSpecializationType(TemplateName(ClassTemplate), in InstantiateClassTemplatePartialSpecialization() 3003 TemplateName(ClassTemplate), in InstantiateClassTemplatePartialSpecialization() [all …]
|
D | SemaCXXScopeSpec.cpp | 101 if (ClassTemplateDecl *ClassTemplate in computeDeclContext() local 111 = ClassTemplate->getInjectedClassNameSpecialization(); in computeDeclContext() 113 return ClassTemplate->getTemplatedDecl(); in computeDeclContext() 120 = ClassTemplate->findPartialSpecialization(ContextType)) { in computeDeclContext()
|
D | SemaCodeComplete.cpp | 799 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(D)) in MaybeAddConstructorResults() local 800 Record = ClassTemplate->getTemplatedDecl(); in MaybeAddConstructorResults() 1116 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsNestedNameSpecifier() local 1117 ND = ClassTemplate->getTemplatedDecl(); in IsNestedNameSpecifier() 1130 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsClassOrStruct() local 1131 ND = ClassTemplate->getTemplatedDecl(); in IsClassOrStruct() 1145 if (const ClassTemplateDecl *ClassTemplate = dyn_cast<ClassTemplateDecl>(ND)) in IsUnion() local 1146 ND = ClassTemplate->getTemplatedDecl(); in IsUnion() 3059 case Decl::ClassTemplate: return CXCursor_ClassTemplate; in getCursorKindForDecl()
|
D | SemaTemplateInstantiate.cpp | 168 if (ClassTemplateDecl *ClassTemplate = Rec->getDescribedClassTemplate()) { in getTemplateInstantiationArgs() local 169 QualType T = ClassTemplate->getInjectedClassNameSpecialization(); in getTemplateInstantiationArgs() 174 if (ClassTemplate->isMemberSpecialization()) in getTemplateInstantiationArgs()
|
D | SemaTemplateDeduction.cpp | 2212 ClassTemplateDecl *ClassTemplate = Partial->getSpecializedTemplate(); in FinishTemplateArgumentDeduction() local 2236 if (S.CheckTemplateArgumentList(ClassTemplate, Partial->getLocation(), in FinishTemplateArgumentDeduction() 2241 = ClassTemplate->getTemplateParameters(); in FinishTemplateArgumentDeduction()
|
/external/clang/include/clang/Basic/ |
D | DeclNodes.td | 62 def ClassTemplate : DDecl<RedeclarableTemplate>;
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersNodeTest.cpp | 118 TEST(ClassTemplate, DoesNotMatchClass) { in TEST() argument 124 TEST(ClassTemplate, MatchesClassTemplate) { in TEST() argument 130 TEST(ClassTemplate, DoesNotMatchClassTemplateExplicitSpecialization) { in TEST() argument 137 TEST(ClassTemplate, DoesNotMatchClassTemplatePartialSpecialization) { in TEST() argument
|
/external/clang/lib/Serialization/ |
D | ASTCommon.cpp | 264 case Decl::ClassTemplate: in isRedeclarableDeclKind()
|
/external/clang/lib/AST/ |
D | Comment.cpp | 197 case Decl::ClassTemplate: { in fill()
|
D | ASTImporter.cpp | 4518 ClassTemplateDecl *ClassTemplate in VisitClassTemplateSpecializationDecl() local 4521 if (!ClassTemplate) in VisitClassTemplateSpecializationDecl() 4525 DeclContext *DC = ClassTemplate->getDeclContext(); in VisitClassTemplateSpecializationDecl() 4550 = ClassTemplate->findSpecialization(TemplateArgs, InsertPos); in VisitClassTemplateSpecializationDecl() 4570 ClassTemplate, in VisitClassTemplateSpecializationDecl() 4576 ClassTemplate->AddSpecialization(D2, InsertPos); in VisitClassTemplateSpecializationDecl()
|
/external/clang/lib/ASTMatchers/ |
D | ASTMatchFinder.cpp | 772 if (auto *ClassTemplate = dyn_cast_or_null<ClassTemplateDecl>( in getAsCXXRecordDeclOrPrimaryTemplate() local 774 return ClassTemplate->getTemplatedDecl(); in getAsCXXRecordDeclOrPrimaryTemplate()
|
/external/clang/include/clang/Sema/ |
D | Template.h | 509 ClassTemplateDecl *ClassTemplate,
|
/external/clang/lib/Frontend/ |
D | ASTConsumers.cpp | 470 case Decl::ClassTemplate: { in PrintDeclContext()
|
/external/clang/lib/Index/ |
D | IndexSymbol.cpp | 189 case Decl::ClassTemplate: in getSymbolInfo()
|
/external/clang/include/clang/AST/ |
D | DeclTemplate.h | 1976 : RedeclarableTemplateDecl(ClassTemplate, C, DC, L, Name, Params, Decl) {} 2125 static bool classofKind(Kind K) { return K == ClassTemplate; }
|