| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | class-template-ctor-initializer.cpp | 19 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 D | CIndexCXX.cpp | 114 } 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 D | debug-info-use-after-free.cpp | 13 template < template < typename > class Tmpl > struct TemplateSel 17 typedef Tmpl < T > type;
|
| H A D | dllexport.cpp | 866 template<typename> struct Tmpl {}; struct 872 Tmpl<Inner> y;
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Template.h | 625 bool InitFunctionInstantiation(FunctionDecl *New, FunctionDecl *Tmpl); 626 bool InitMethodInstantiation(CXXMethodDecl *New, CXXMethodDecl *Tmpl); 628 bool SubstDefaultedFunction(FunctionDecl *New, FunctionDecl *Tmpl);
|
| H A D | Sema.h | 9832 const CXXConstructorDecl *Tmpl,
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaTemplateInstantiateDecl.cpp | 660 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 D | SemaLookup.cpp | 3486 } 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 D | SemaTemplateInstantiate.cpp | 96 VarTemplateDecl *Tmpl = Specialized.get<VarTemplateDecl *>(); in getTemplateInstantiationArgs() local 97 if (Tmpl->isMemberSpecialization()) in getTemplateInstantiationArgs()
|
| H A D | SemaTemplate.cpp | 1919 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 D | SemaCodeComplete.cpp | 1081 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 D | ASTReaderDecl.cpp | 1457 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 D | ASTContext.h | 970 void setInstantiatedFromStaticDataMember(VarDecl *Inst, VarDecl *Tmpl, 1003 void setInstantiatedFromUnnamedFieldDecl(FieldDecl *Inst, FieldDecl *Tmpl);
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | DeclCXX.cpp | 1594 if (FunctionTemplateDecl *Tmpl = CallOp->getDescribedFunctionTemplate()) in getGenericLambdaTemplateParameterList() local 1595 return Tmpl->getTemplateParameters(); in getGenericLambdaTemplateParameterList()
|
| H A D | ASTContext.cpp | 1541 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 D | CGDebugInfo.cpp | 2457 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 D | gtest-type-util.h | 1640 template <GTEST_TEMPLATE_ Tmpl> 1644 typedef Tmpl<T> type;
|