Home
last modified time | relevance | path

Searched refs:Templ (Results 1 – 18 of 18) sorted by relevance

/llvm-project-15.0.7/clang/test/Modules/
H A Ddeduction-guide3.cppm5 // RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-module-interface -o %t/Templ.pcm
8 //--- Templ.cppm
9 export module Templ;
11 class Templ {
13 Templ(T a) {}
17 Templ(T t) -> Templ<T>;
20 import Templ;
22Templ t(5); // expected-error {{declaration of 'Templ' must be imported from module 'Templ' before…
23 // expected-error@-1 {{unknown type name 'Templ'}}
24 // expected-note@Templ.cppm:3 {{declaration here is not visible}}
H A Ddeduction-guide.cppm5 // RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-module-interface -o %t/Templ.pcm
10 class Templ {
12 Templ(T a) {}
16 Templ(T t) -> Templ<T>;
18 //--- Templ.cppm
21 export module Templ;
22 export using ::Templ;
26 import Templ;
28 Templ t(5);
H A Ddeduction-guide2.cppm5 // RUN: %clang_cc1 -std=c++20 %t/Templ.cppm -emit-module-interface -o %t/Templ.pcm
8 //--- Templ.cppm
9 export module Templ;
11 class Templ {
13 Templ(T a) {}
17 Templ(T t) -> Templ<T>;
21 import Templ;
23 Templ t(5);
H A DInheritDefaultArguments.cppm10 class Templ;
13 class Templ {
15 Templ(T t) {}
19 Templ(T t) -> Templ<T, int>;
33 Templ t(0);
H A DReachability-template-instantiation.cpp20 export module Templ;
31 import Templ; variable
/llvm-project-15.0.7/clang/test/Index/
H A Dctor-init-source-loc.cpp17 struct Templ;
20 struct Derived3: Templ<MyBase>::InnerIterator
22 Derived3() : Templ<MyBase>::InnerIterator() {} in Derived3()
81 template<typename Q> struct Templ;
92 struct Derived9: Namespace::Templ<MyBase>::InnerIterator
94 Derived9() : Namespace::Templ<MyBase>::InnerIterator() {} in Derived9()
101 struct Derived10: Namespace::Templ<MyBase>
103 Derived10() : Namespace::Templ<MyBase>() {} in Derived10()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dapple-kext-indirect-virtual-dtor-call.cpp22 struct Templ { struct
23 virtual ~Templ(); // Out-of-line so that the destructor doesn't cause a vtable
28 struct SubTempl : public Templ<T> { argument
42 t->Templ::~Templ(); in f()
H A Dapple-kext-indirect-call.cpp19 struct Templ { struct
24 struct SubTempl : public Templ<T> { argument
37 t->Templ::f(); in f()
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.ctor/
H A Dmove_convert.pass.cpp36 template <class Templ, class Other>
39 template <template <int> class Templ, int ID1, class Other>
40 struct is_specialization<Templ<ID1>, Other> : std::false_type {};
42 template <template <int> class Templ, int ID1, int ID2>
43 struct is_specialization<Templ<ID1>, Templ<ID2> > : std::true_type {};
45 template <class Templ, class Other>
47 is_specialization<Templ, typename std::decay<Other>::type >::value
/llvm-project-15.0.7/libcxx/test/std/utilities/smartptr/unique.ptr/unique.ptr.class/unique.ptr.asgn/
H A Dmove_convert.pass.cpp48 template <class Templ, class Other>
51 template <template <int> class Templ, int ID1, class Other>
52 struct is_specialization<Templ<ID1>, Other> : std::false_type {};
54 template <template <int> class Templ, int ID1, int ID2>
55 struct is_specialization<Templ<ID1>, Templ<ID2> > : std::true_type {};
57 template <class Templ, class Other>
59 is_specialization<Templ, typename std::decay<Other>::type >::value
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/readability/
H A Ddelete-null-pointer.cpp6 struct Templ { struct
34 Templ<int *> ti2; in instantiate() argument
/llvm-project-15.0.7/clang/lib/Tooling/DumpTool/
H A DASTSrcLocProcessor.cpp235 if (const auto *Templ = in run() local
239 const auto &TArgs = Templ->getTemplateArgs(); in run()
261 if (const auto *Templ = ASTClass->getDescribedClassTemplate()) { in run() local
262 if (auto *TParams = Templ->getTemplateParameters()) { in run()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dbuiltin-is-constant-evaluated.cpp33 struct Templ { static_assert(V); static_assert(Default); }; struct
34 Templ<__builtin_is_constant_evaluated()> x; // type X<true>
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DMismatchedIteratorChecker.cpp150 const auto *Templ = Func->getPrimaryTemplate(); in checkPreCall() local
151 if (!Templ) in checkPreCall()
154 const auto *TParams = Templ->getTemplateParameters(); in checkPreCall()
/llvm-project-15.0.7/clang/test/Modules/Inputs/module-transtive-instantiation/
H A Dbar.cppm2 import Templ;
H A DTempl.cppm1 export module Templ;
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTTraverserTest.cpp259 auto Templ = Result[0].getNodeAs<ClassTemplateSpecializationDecl>("fn"); in TEST() local
261 TemplateArgument TA = Templ->getTemplateArgs()[0]; in TEST()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindSymbols.cpp388 if (auto *Templ = llvm::dyn_cast<TemplateDecl>(D)) { in traverseDecl() local
390 if (auto *TD = Templ->getTemplatedDecl()) in traverseDecl()