Home
last modified time | relevance | path

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

12

/external/v8/tools/clang/plugins/tests/
Dweak_ptr_factory.cpp39 class ClassTemplate { class
41 ClassTemplate() : factory_(this) {} in ClassTemplate() function in should_succeed::ClassTemplate
44 base::WeakPtrFactory<ClassTemplate> factory_;
47 ClassTemplate<int> g_instance;
72 class ClassTemplate { class
74 ClassTemplate() : factory_(this) {} in ClassTemplate() function in should_fail::ClassTemplate
76 base::WeakPtrFactory<ClassTemplate> factory_;
80 ClassTemplate<int> g_instance;
Dweak_ptr_factory.txt11 base::WeakPtrFactory<ClassTemplate> factory_;
/external/clang/test/CodeGenCXX/
Dpredefined-expr.cpp130 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 …]
Dmangle-ms-templates-memptrs-2.cpp52 struct ClassTemplate { struct
53 ClassTemplate() {} in ClassTemplate() argument
56 template struct ClassTemplate<&MostGeneral::h>; variable
Ddllimport.cpp847 template <typename T> struct ClassTemplate { void func() {} }; in func() struct
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)
Dinline-functions.cpp40 template <typename T> class ClassTemplate { class
52 ClassTemplate<C> ct; in func()
Dpredefined-expr-cxx14.cpp51 class ClassTemplate { class
95 ClassTemplate<int> t; in main()
Ddllexport.cpp857 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/
Dext_ms_template_spec.cpp6 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/
Ddllexport.cpp410 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> {};
Ddllimport.cpp1347 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/
DSemaTemplate.cpp2237 } 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 …]
DSemaTemplateInstantiateDecl.cpp1222 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 …]
DSemaCXXScopeSpec.cpp101 if (ClassTemplateDecl *ClassTemplate in computeDeclContext() local
111 = ClassTemplate->getInjectedClassNameSpecialization(); in computeDeclContext()
113 return ClassTemplate->getTemplatedDecl(); in computeDeclContext()
120 = ClassTemplate->findPartialSpecialization(ContextType)) { in computeDeclContext()
DSemaCodeComplete.cpp799 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()
DSemaTemplateInstantiate.cpp168 if (ClassTemplateDecl *ClassTemplate = Rec->getDescribedClassTemplate()) { in getTemplateInstantiationArgs() local
169 QualType T = ClassTemplate->getInjectedClassNameSpecialization(); in getTemplateInstantiationArgs()
174 if (ClassTemplate->isMemberSpecialization()) in getTemplateInstantiationArgs()
/external/clang/include/clang/Basic/
DDeclNodes.td62 def ClassTemplate : DDecl<RedeclarableTemplate>;
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp118 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/
DASTCommon.cpp264 case Decl::ClassTemplate: in isRedeclarableDeclKind()
/external/clang/lib/AST/
DComment.cpp197 case Decl::ClassTemplate: { in fill()
/external/clang/lib/ASTMatchers/
DASTMatchFinder.cpp772 if (auto *ClassTemplate = dyn_cast_or_null<ClassTemplateDecl>( in getAsCXXRecordDeclOrPrimaryTemplate() local
774 return ClassTemplate->getTemplatedDecl(); in getAsCXXRecordDeclOrPrimaryTemplate()
/external/clang/include/clang/Sema/
DTemplate.h509 ClassTemplateDecl *ClassTemplate,
/external/clang/lib/Frontend/
DASTConsumers.cpp470 case Decl::ClassTemplate: { in PrintDeclContext()
/external/clang/lib/Index/
DIndexSymbol.cpp189 case Decl::ClassTemplate: in getSymbolInfo()
/external/clang/include/clang/AST/
DDeclTemplate.h1976 : RedeclarableTemplateDecl(ClassTemplate, C, DC, L, Name, Params, Decl) {}
2125 static bool classofKind(Kind K) { return K == ClassTemplate; }

12