Home
last modified time | relevance | path

Searched refs:Tmpl (Results 1 – 25 of 41) sorted by relevance

12

/external/llvm-project/clang/test/SemaTemplate/
Dclass-template-ctor-initializer.cpp19 template<typename T> struct Tmpl { }; struct
23 struct TmplC : Tmpl<int> {
25 Tmpl<int>(), in TmplC()
30 struct TmplD : Tmpl<char>, TmplB<char> {
32Tmpl<int>(), // expected-error {{type 'Tmpl<int>' is not a direct or virtual base of 'TmplD'}} in TmplD()
/external/clang/test/SemaTemplate/
Dclass-template-ctor-initializer.cpp19 template<typename T> struct Tmpl { }; struct
23 struct TmplC : Tmpl<int> {
25 Tmpl<int>(), in TmplC()
30 struct TmplD : Tmpl<char>, TmplB<char> {
32Tmpl<int>(), // expected-error {{type 'Tmpl<int>' is not a direct or virtual base of 'TmplD'}} in TmplD()
/external/clang/tools/libclang/
DCIndexCXX.cpp117 } else if (const RedeclarableTemplateDecl *Tmpl in clang_getSpecializedCursorTemplate() local
119 Template = Tmpl->getInstantiatedFromMemberTemplate(); in clang_getSpecializedCursorTemplate()
/external/llvm-project/clang/tools/libclang/
DCIndexCXX.cpp114 } else if (const RedeclarableTemplateDecl *Tmpl in clang_getSpecializedCursorTemplate() local
116 Template = Tmpl->getInstantiatedFromMemberTemplate(); in clang_getSpecializedCursorTemplate()
/external/libaom/libaom/third_party/googletest/src/googletest/include/gtest/internal/
Dgtest-type-util.h114 template <GTEST_TEMPLATE_ Tmpl>
118 typedef Tmpl<T> type;
/external/googletest/googletest/include/gtest/internal/
Dgtest-type-util.h114 template <GTEST_TEMPLATE_ Tmpl>
118 typedef Tmpl<T> type;
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/
Dgtest-type-util.h.pump199 // The template "selector" struct TemplateSel<Tmpl> is used to
200 // represent Tmpl, which must be a class template with one type
201 // parameter, as a type. TemplateSel<Tmpl>::Bind<T>::type is defined
202 // as the type Tmpl<T>. This allows us to actually instantiate the
203 // template "selected" by TemplateSel<Tmpl>.
207 template <GTEST_TEMPLATE_ Tmpl>
211 typedef Tmpl<T> type;
/external/mesa3d/src/gtest/include/gtest/internal/
Dgtest-type-util.h.pump187 // The template "selector" struct TemplateSel<Tmpl> is used to
188 // represent Tmpl, which must be a class template with one type
189 // parameter, as a type. TemplateSel<Tmpl>::Bind<T>::type is defined
190 // as the type Tmpl<T>. This allows us to actually instantiate the
191 // template "selected" by TemplateSel<Tmpl>.
195 template <GTEST_TEMPLATE_ Tmpl>
199 typedef Tmpl<T> type;
/external/llvm-project/clang/test/CodeGenCXX/
Ddebug-info-use-after-free.cpp13 template < template < typename > class Tmpl > struct TemplateSel
17 typedef Tmpl < T > type;
Ddllexport.cpp866 template<typename> struct Tmpl {}; struct
872 Tmpl<Inner> y;
/external/clang/test/CodeGenCXX/
Ddebug-info-use-after-free.cpp11 template < template < typename > class Tmpl > struct TemplateSel
15 typedef Tmpl < T > type;
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp172 const EnableIfAttr *A, const Decl *Tmpl, Decl *New) { in instantiateDependentEnableIfAttr() argument
190 !Expr::isPotentialConstantExprUnevaluated(Cond, cast<FunctionDecl>(Tmpl), in instantiateDependentEnableIfAttr()
311 const Decl *Tmpl, Decl *New, in InstantiateAttrs() argument
314 for (const auto *TmplAttr : Tmpl->attrs()) { in InstantiateAttrs()
336 instantiateDependentEnableIfAttr(*this, TemplateArgs, EnableIf, Tmpl, in InstantiateAttrs()
3391 FunctionDecl *Tmpl) { in InitFunctionInstantiation() argument
3392 if (Tmpl->isDeleted()) in InitFunctionInstantiation()
3397 SemaRef.Context.getManglingNumber(Tmpl)); in InitFunctionInstantiation()
3413 assert(FunTmpl->getTemplatedDecl() == Tmpl && in InitFunctionInstantiation()
3421 const FunctionProtoType *Proto = Tmpl->getType()->getAs<FunctionProtoType>(); in InitFunctionInstantiation()
[all …]
DSemaTemplateInstantiate.cpp88 VarTemplateDecl *Tmpl = Specialized.get<VarTemplateDecl *>(); in getTemplateInstantiationArgs() local
89 if (Tmpl->isMemberSpecialization()) in getTemplateInstantiationArgs()
DSemaLookup.cpp2966 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember() local
2970 Tmpl, Cand, RD, nullptr, ThisTy, Classification, in LookupSpecialMember()
2978 Tmpl, Cand, nullptr, llvm::makeArrayRef(&Arg, NumArgs), OCS, true); in LookupSpecialMember()
/external/llvm-project/clang/include/clang/Sema/
DTemplate.h589 bool InitFunctionInstantiation(FunctionDecl *New, FunctionDecl *Tmpl);
590 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl);
592 bool SubstDefaultedFunction(FunctionDecl *New, FunctionDecl *Tmpl);
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp202 const Attr *A, Expr *OldCond, const Decl *Tmpl, FunctionDecl *New) { in instantiateDependentFunctionAttrCondition() argument
233 const EnableIfAttr *EIA, const Decl *Tmpl, FunctionDecl *New) { in instantiateDependentEnableIfAttr() argument
235 S, TemplateArgs, EIA, EIA->getCond(), Tmpl, New); in instantiateDependentEnableIfAttr()
244 const DiagnoseIfAttr *DIA, const Decl *Tmpl, FunctionDecl *New) { in instantiateDependentDiagnoseIfAttr() argument
246 S, TemplateArgs, DIA, DIA->getCond(), Tmpl, New); in instantiateDependentDiagnoseIfAttr()
552 const MultiLevelTemplateArgumentList &TemplateArgs, const Decl *Tmpl, in InstantiateAttrsForDecl() argument
556 for (const auto *TmplAttr : Tmpl->attrs()) { in InstantiateAttrsForDecl()
586 const Decl *Tmpl, Decl *New, in InstantiateAttrs() argument
589 for (const auto *TmplAttr : Tmpl->attrs()) { in InstantiateAttrs()
618 instantiateDependentEnableIfAttr(*this, TemplateArgs, EnableIf, Tmpl, in InstantiateAttrs()
[all …]
DSemaLookup.cpp3188 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember() local
3192 Tmpl, Cand, RD, nullptr, ThisTy, Classification, in LookupSpecialMember()
3200 Tmpl, Cand, nullptr, llvm::makeArrayRef(&Arg, NumArgs), OCS, true); in LookupSpecialMember()
/external/clang/include/clang/Sema/
DTemplate.h490 bool InitFunctionInstantiation(FunctionDecl *New, FunctionDecl *Tmpl);
491 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl);
/external/clang/include/clang/AST/
DASTContext.h795 void setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl,
817 void setInstantiatedFromUnnamedFieldDecl(FieldDecl *Inst, FieldDecl *Tmpl);
/external/clang/lib/AST/
DDeclCXX.cpp1094 if (FunctionTemplateDecl *Tmpl = CallOp->getDescribedFunctionTemplate()) in getGenericLambdaTemplateParameterList() local
1095 return Tmpl->getTemplateParameters(); in getGenericLambdaTemplateParameterList()
DASTContext.cpp1171 ASTContext::setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl, in setInstantiatedFromStaticDataMember() argument
1175 assert(Tmpl->isStaticDataMember() && "Not a static data member"); in setInstantiatedFromStaticDataMember()
1177 Tmpl, TSK, PointOfInstantiation)); in setInstantiatedFromStaticDataMember()
1253 FieldDecl *Tmpl) { in setInstantiatedFromUnnamedFieldDecl() argument
1255 assert(!Tmpl->getDeclName() && "Template field decl is not unnamed"); in setInstantiatedFromUnnamedFieldDecl()
1259 InstantiatedFromUnnamedFieldDecl[Inst] = Tmpl; in setInstantiatedFromUnnamedFieldDecl()
/external/llvm-project/clang/include/clang/AST/
DASTContext.h853 void setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl,
875 void setInstantiatedFromUnnamedFieldDecl(FieldDecl *Inst, FieldDecl *Tmpl);
/external/clang/lib/Serialization/
DASTReaderDecl.cpp1184 if (FieldDecl *Tmpl = ReadDeclAs<FieldDecl>(Record, Idx)) in VisitFieldDecl() local
1185 Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl); in VisitFieldDecl()
1260 VarDecl *Tmpl = ReadDeclAs<VarDecl>(Record, Idx); in VisitVarDeclImpl() local
1263 Reader.getContext().setInstantiatedFromStaticDataMember(VD, Tmpl, TSK,POI); in VisitVarDeclImpl()
/external/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp1362 if (auto *Tmpl = readDeclAs<FieldDecl>()) in VisitFieldDecl() local
1363 Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl); in VisitFieldDecl()
1479 auto *Tmpl = readDeclAs<VarDecl>(); in VisitVarDeclImpl() local
1482 Reader.getContext().setInstantiatedFromStaticDataMember(VD, Tmpl, TSK,POI); in VisitVarDeclImpl()
/external/llvm-project/clang/lib/AST/
DDeclCXX.cpp1566 if (FunctionTemplateDecl *Tmpl = CallOp->getDescribedFunctionTemplate()) in getGenericLambdaTemplateParameterList() local
1567 return Tmpl->getTemplateParameters(); in getGenericLambdaTemplateParameterList()

12