Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/test/SemaTemplate/
H A 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> {
32 … Tmpl<int>(), // expected-error {{type 'Tmpl<int>' is not a direct or virtual base of 'TmplD'}} in TmplD()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexCXX.cpp114 } else if (const RedeclarableTemplateDecl *Tmpl in clang_getSpecializedCursorTemplate() local
116 Template = Tmpl->getInstantiatedFromMemberTemplate(); in clang_getSpecializedCursorTemplate()
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Ddebug-info-use-after-free.cpp13 template < template < typename > class Tmpl > struct TemplateSel
17 typedef Tmpl < T > type;
H A Ddllexport.cpp866 template<typename> struct Tmpl {}; struct
872 Tmpl<Inner> y;
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DTemplate.h625 bool InitFunctionInstantiation(FunctionDecl *New, FunctionDecl *Tmpl);
626 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl);
628 bool SubstDefaultedFunction(FunctionDecl *New, FunctionDecl *Tmpl);
H A DSema.h9832 const CXXConstructorDecl *Tmpl,
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaTemplateInstantiateDecl.cpp660 for (const auto *TmplAttr : Tmpl->attrs()) { in InstantiateAttrsForDecl()
696 for (const auto *TmplAttr : Tmpl->attrs()) { in InstantiateAttrs()
4619 New->setImplicit(Tmpl->isImplicit()); in InitFunctionInstantiation()
4668 FunctionDecl *ExceptionSpecTemplate = Tmpl; in InitFunctionInstantiation()
4692 const FunctionDecl *Definition = Tmpl; in InitFunctionInstantiation()
4693 Tmpl->isDefined(Definition); in InitFunctionInstantiation()
4709 if (InitFunctionInstantiation(New, Tmpl)) in InitMethodInstantiation()
4715 New->setAccess(Tmpl->getAccess()); in InitMethodInstantiation()
4716 if (Tmpl->isVirtualAsWritten()) in InitMethodInstantiation()
5617 bool AnyErrors = Tmpl->isInvalidDecl(); in InstantiateMemInitializers()
[all …]
H A DSemaLookup.cpp3486 } else if (FunctionTemplateDecl *Tmpl = in LookupSpecialMember() local
3490 Tmpl, Cand, RD, nullptr, ThisTy, Classification, in LookupSpecialMember()
3498 Tmpl, Cand, nullptr, llvm::makeArrayRef(&Arg, NumArgs), OCS, true); in LookupSpecialMember()
H A DSemaTemplateInstantiate.cpp96 VarTemplateDecl *Tmpl = Specialized.get<VarTemplateDecl *>(); in getTemplateInstantiationArgs() local
97 if (Tmpl->isMemberSpecialization()) in getTemplateInstantiationArgs()
H A DSemaTemplate.cpp1919 auto *Tmpl = cast<CXXRecordDecl>(Hidden)->getDescribedClassTemplate(); in CheckClassTemplate() local
1920 assert(Tmpl && "original definition of a class template is not a " in CheckClassTemplate()
1923 makeMergedDefinitionVisible(Tmpl); in CheckClassTemplate()
H A DSemaCodeComplete.cpp1081 if (const auto *Tmpl = dyn_cast<FunctionTemplateDecl>(ND)) in isConstructor() local
1082 ND = Tmpl->getTemplatedDecl(); in isConstructor()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReaderDecl.cpp1457 if (auto *Tmpl = readDeclAs<FieldDecl>()) in VisitFieldDecl() local
1458 Reader.getContext().setInstantiatedFromUnnamedFieldDecl(FD, Tmpl); in VisitFieldDecl()
1585 auto *Tmpl = readDeclAs<VarDecl>(); in VisitVarDeclImpl() local
1588 Reader.getContext().setInstantiatedFromStaticDataMember(VD, Tmpl, TSK,POI); in VisitVarDeclImpl()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTContext.h970 void setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl,
1003 void setInstantiatedFromUnnamedFieldDecl(FieldDecl *Inst, FieldDecl *Tmpl);
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp1594 if (FunctionTemplateDecl *Tmpl = CallOp->getDescribedFunctionTemplate()) in getGenericLambdaTemplateParameterList() local
1595 return Tmpl->getTemplateParameters(); in getGenericLambdaTemplateParameterList()
H A DASTContext.cpp1541 ASTContext::setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl, in setInstantiatedFromStaticDataMember() argument
1545 assert(Tmpl->isStaticDataMember() && "Not a static data member"); in setInstantiatedFromStaticDataMember()
1547 Tmpl, TSK, PointOfInstantiation)); in setInstantiatedFromStaticDataMember()
1623 FieldDecl *Tmpl) { in setInstantiatedFromUnnamedFieldDecl() argument
1625 assert(!Tmpl->getDeclName() && "Template field decl is not unnamed"); in setInstantiatedFromUnnamedFieldDecl()
1629 InstantiatedFromUnnamedFieldDecl[Inst] = Tmpl; in setInstantiatedFromUnnamedFieldDecl()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.cpp2457 if (FunctionDecl *Tmpl = MD->getInstantiatedFromMemberFunction()) in hasExplicitMemberDefinition() local
2458 if (!Tmpl->isImplicit() && Tmpl->isThisDeclarationADefinition() && in hasExplicitMemberDefinition()
/llvm-project-15.0.7/llvm/utils/unittest/googletest/include/gtest/internal/
H A Dgtest-type-util.h1640 template <GTEST_TEMPLATE_ Tmpl>
1644 typedef Tmpl<T> type;