/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() argument 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/llvm-project/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 | debug-info-codeview-display-name.cpp | 103 template <typename A, typename B, typename C> struct ClassTemplate { A a; B b; C c; }; struct 104 ClassTemplate<char, short, ClassTemplate<int, int, int> > f;
|
D | mangle-ms-templates-memptrs-2.cpp | 52 struct ClassTemplate { struct 53 ClassTemplate() {} in ClassTemplate() argument 56 template struct ClassTemplate<&MostGeneral::h>; variable
|
D | dllimport.cpp | 886 template <typename T> struct ClassTemplate { void func() {} }; in func() struct 909 struct __declspec(dllimport) DerivedFromTemplate : public ClassTemplate<int> {}; 910 USEMEMFUNC(ClassTemplate<int>, func) 927 struct DerivedFromTemplateD : public ClassTemplate<double> {}; 928 struct __declspec(dllimport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 929 USEMEMFUNC(ClassTemplate<double>, func) 934 struct __declspec(dllexport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 935 struct __declspec(dllimport) DerivedFromTemplateB2 : public ClassTemplate<bool> {}; 936 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 | 53 class ClassTemplate { class 102 ClassTemplate<int> t; in main()
|
D | dllexport.cpp | 952 template <typename T> struct ClassTemplate { void func(); }; struct 953 template <typename T> void ClassTemplate<T>::func() {} in func() 979 struct __declspec(dllexport) DerivedFromTemplate : public ClassTemplate<int> {}; 997 struct DerivedFromTemplateD : public ClassTemplate<double> {}; 998 struct __declspec(dllexport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 1004 struct __declspec(dllimport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 1005 struct __declspec(dllexport) DerivedFromTemplateB2 : public ClassTemplate<bool> {};
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTImporterODRStrategiesTest.cpp | 104 struct ClassTemplate { struct 420 ClassTemplate, Liberal, , 461 ClassTemplate, Conservative, , 480 ClassTemplate, Liberal, , 490 ClassTemplate, Conservative, , 497 ClassTemplate, Liberal, , 504 ClassTemplate, Conservative, , 514 ClassTemplate, Liberal, , 524 ClassTemplate, Conservative, , 528 ClassTemplate, Liberal, , [all …]
|
D | ASTImporterGenericRedeclTest.cpp | 68 struct ClassTemplate { struct 443 RedeclChain, ClassTemplate, , 465 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 484 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 503 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 522 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 540 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 558 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 577 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, , 596 ASTIMPORTER_INSTANTIATE_TYPED_TEST_CASE(RedeclChain, ClassTemplate, ,
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | bugprone-unused-return-value-custom.cpp | 38 struct ClassTemplate { struct 76 ns::ClassTemplate<int> ObjA4; in warning() 81 ns::ClassTemplate<int>::staticFun(); in warning() 94 ns::ClassTemplate<int> ObjB2; in noWarning() 97 auto R5 = ns::ClassTemplate<int>::staticFun(); in noWarning()
|
D | readability-inconsistent-declaration-parameter-name.cpp | 133 class ClassTemplate class 144 void ClassTemplate<T>::functionInClassTemplateWithSeparateDeclarationAndDefinition(int b) { b; } in functionInClassTemplateWithSeparateDeclarationAndDefinition()
|
/external/llvm-project/llvm/test/Demangle/ |
D | ms-templates-memptrs-2.test | 30 ??0?$ClassTemplate@$J??_9MostGeneral@@$BA@AEA@M@3@@QAE@XZ 31 ; CHECK: __thiscall ClassTemplate<{[thunk]: __thiscall MostGeneral::`vcall'{0, {flat}}, 0, 12, 4}>:…
|
/external/llvm-project/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/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/llvm-project/clang/test/SemaCXX/ |
D | dllexport.cpp | 436 template <typename T> class ClassTemplate {}; class 467 class __declspec(dllexport) DerivedFromTemplate : public ClassTemplate<int> {}; 470 class __declspec(dllexport) DerivedFromTemplate2 : public ClassTemplate<int> {}; 478 class DerivedFromTemplateD : public ClassTemplate<double> {}; 480 class __declspec(dllexport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 483 extern template class ClassTemplate<float>; 484 class __declspec(dllexport) DerivedFromTemplateF : public ClassTemplate<float> {}; 486 class __declspec(dllexport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 488 class __declspec(dllimport) DerivedFromTemplateB2 : public ClassTemplate<bool> {};
|
D | dllimport.cpp | 1446 template <typename T> class ClassTemplate {}; class 1504 class __declspec(dllimport) DerivedFromTemplate : public ClassTemplate<int> {}; 1507 class __declspec(dllimport) DerivedFromTemplate2 : public ClassTemplate<int> {}; 1515 class DerivedFromTemplateD : public ClassTemplate<double> {}; 1517 class __declspec(dllimport) DerivedFromTemplateD2 : public ClassTemplate<double> {}; 1520 extern template class ClassTemplate<float>; 1521 class __declspec(dllimport) DerivedFromTemplateF : public ClassTemplate<float> {}; 1523 class __declspec(dllimport) DerivedFromTemplateB : public ClassTemplate<bool> {}; 1525 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 …]
|