Home
last modified time | relevance | path

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

/llvm-project-15.0.7/clang/include/clang/Sema/
H A DParsedTemplate.h205 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create() local
210 CleanupList.push_back(TemplateId); in Create()
211 return TemplateId; in Create()
H A DDeclSpec.h1003 TemplateIdAnnotation *TemplateId; member
1113 void setConstructorTemplateId(TemplateIdAnnotation *TemplateId);
1135 void setTemplateId(TemplateIdAnnotation *TemplateId);
H A DSema.h7898 const CXXScopeSpec &SS, TemplateIdAnnotation *TemplateId,
8003 TemplateIdAnnotation &TemplateId, const ParsedAttributesView &Attr,
8282 IdentifierInfo *TypeName, TemplateIdAnnotation *TemplateId);
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExprCXX.cpp345 *LastII = TemplateId->Name; in ParseOptionalCXXScopeSpecifier()
358 if (TemplateId->isInvalid() || in ParseOptionalCXXScopeSpecifier()
1720 if (TemplateId->isInvalid()) in ParseCXXPseudoDestructor()
2495 Id.setTemplateId(TemplateId); in ParseUnqualifiedIdTemplateId()
2877 if (TemplateId->isInvalid()) { in ParseUnqualifiedId()
2890 Diag(TemplateId->TemplateNameLoc, in ParseUnqualifiedId()
2892 << TemplateId->Name in ParseUnqualifiedId()
2894 SourceRange(TemplateId->LAngleLoc, TemplateId->RAngleLoc)); in ParseUnqualifiedId()
2896 *TemplateId->Name, TemplateId->TemplateNameLoc, getCurScope(), SS, in ParseUnqualifiedId()
2913 Result.setTemplateId(TemplateId); in ParseUnqualifiedId()
[all …]
H A DParseDeclCXX.cpp1673 getCurScope(), TemplateId->Template, TemplateId->Kind, NameLoc, Name); in ParseClassSpecifier()
1677 SourceRange(TemplateId->LAngleLoc, TemplateId->RAngleLoc), true); in ParseClassSpecifier()
1678 TemplateId = nullptr; in ParseClassSpecifier()
1682 if (TemplateId && !TemplateId->mightBeType()) { in ParseClassSpecifier()
1692 << TemplateId->Name << static_cast<int>(TemplateId->Kind) << Range; in ParseClassSpecifier()
1826 if (!Name && !TemplateId && in ParseClassSpecifier()
1851 if (TemplateId) { in ParseClassSpecifier()
1867 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, TemplateArgsPtr, in ParseClassSpecifier()
1881 TemplateId->Template, TemplateId->TemplateNameLoc, in ParseClassSpecifier()
1882 TemplateId->LAngleLoc, TemplateArgsPtr, TemplateId->RAngleLoc); in ParseClassSpecifier()
[all …]
H A DParseTemplate.cpp1388 TemplateIdAnnotation *TemplateId = TemplateIdAnnotation::Create( in AnnotateTemplateIdToken() local
1392 Tok.setAnnotationValue(TemplateId); in AnnotateTemplateIdToken()
1425 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in AnnotateTemplateIdTokenAsType() local
1426 assert(TemplateId->mightBeType() && in AnnotateTemplateIdTokenAsType()
1429 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in AnnotateTemplateIdTokenAsType()
1430 TemplateId->NumArgs); in AnnotateTemplateIdTokenAsType()
1433 TemplateId->isInvalid() in AnnotateTemplateIdTokenAsType()
1436 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
1437 TemplateId->Template, TemplateId->Name, in AnnotateTemplateIdTokenAsType()
1438 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in AnnotateTemplateIdTokenAsType()
[all …]
H A DParseTentative.cpp1250 auto IsPlaceholderSpecifier = [&] (TemplateIdAnnotation *TemplateId, in isCXXDeclarationSpecifier()
1254 return TemplateId->Kind == TNK_Concept_template && in isCXXDeclarationSpecifier()
1455 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in isCXXDeclarationSpecifier() local
1458 if ((TemplateId->hasInvalidName() || in isCXXDeclarationSpecifier()
1459 TemplateId->Kind == TNK_Undeclared_template) && in isCXXDeclarationSpecifier()
1468 if (TemplateId->hasInvalidName()) in isCXXDeclarationSpecifier()
1470 if (IsPlaceholderSpecifier(TemplateId, /*Lookahead=*/0)) in isCXXDeclarationSpecifier()
1472 if (TemplateId->Kind != TNK_Type_template) in isCXXDeclarationSpecifier()
1487 TemplateIdAnnotation *TemplateId = in isCXXDeclarationSpecifier() local
1489 if (TemplateId->hasInvalidName()) { in isCXXDeclarationSpecifier()
[all …]
H A DParser.cpp1969 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeToken() local
1970 if (!TemplateId->mightBeType()) { in TryAnnotateTypeOrScopeToken()
1976 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in TryAnnotateTypeOrScopeToken()
1977 TemplateId->NumArgs); in TryAnnotateTypeOrScopeToken()
1979 Ty = TemplateId->isInvalid() in TryAnnotateTypeOrScopeToken()
1982 getCurScope(), TypenameLoc, SS, TemplateId->TemplateKWLoc, in TryAnnotateTypeOrScopeToken()
1983 TemplateId->Template, TemplateId->Name, in TryAnnotateTypeOrScopeToken()
1984 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in TryAnnotateTypeOrScopeToken()
1985 TemplateArgsPtr, TemplateId->RAngleLoc); in TryAnnotateTypeOrScopeToken()
2106 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local
[all …]
H A DParseDecl.cpp3310 if (TemplateId && TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
3318 if (TemplateId && TemplateId->Kind == TNK_Type_template) { in ParseDeclarationSpecifiers()
3330 TemplateId->Name && in ParseDeclarationSpecifiers()
3348 if (TemplateId && TemplateId->Kind == TNK_Concept_template && in ParseDeclarationSpecifiers()
3626 if (TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
3634 if (TemplateId->hasInvalidArgs()) in ParseDeclarationSpecifiers()
3635 TemplateId = nullptr; in ParseDeclarationSpecifiers()
3679 if (TemplateId->Kind != TNK_Type_template && in ParseDeclarationSpecifiers()
5452 if (TemplateId->hasInvalidName()) in isDeclarationSpecifier()
5461 TemplateIdAnnotation *TemplateId = in isDeclarationSpecifier() local
[all …]
H A DParseExpr.cpp1589 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Next); in ParseCastExpression() local
1590 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
1611 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseCastExpression() local
1612 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
/llvm-project-15.0.7/clang/lib/Sema/
H A DDeclSpec.cpp31 void UnqualifiedId::setTemplateId(TemplateIdAnnotation *TemplateId) { in setTemplateId() argument
32 assert(TemplateId && "NULL template-id annotation?"); in setTemplateId()
33 assert(!TemplateId->isInvalid() && in setTemplateId()
37 this->TemplateId = TemplateId; in setTemplateId()
38 StartLocation = TemplateId->TemplateNameLoc; in setTemplateId()
39 EndLocation = TemplateId->RAngleLoc; in setTemplateId()
43 assert(TemplateId && "NULL template-id annotation?"); in setConstructorTemplateId()
44 assert(!TemplateId->isInvalid() && in setConstructorTemplateId()
48 this->TemplateId = TemplateId; in setConstructorTemplateId()
49 StartLocation = TemplateId->TemplateNameLoc; in setConstructorTemplateId()
[all …]
H A DSemaExprCXX.cpp7868 TemplateIdAnnotation *TemplateId = SecondTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
7870 TemplateId->NumArgs); in ActOnPseudoDestructorExpr()
7874 TemplateId->Template, in ActOnPseudoDestructorExpr()
7875 TemplateId->Name, in ActOnPseudoDestructorExpr()
7877 TemplateId->LAngleLoc, in ActOnPseudoDestructorExpr()
7921 TemplateIdAnnotation *TemplateId = FirstTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
7928 TemplateId->Name, in ActOnPseudoDestructorExpr()
8909 assert(((!TypeName && TemplateId) || (TypeName && !TemplateId)) && in ActOnTypeRequirement()
8920 TemplateId->NumArgs); in ActOnTypeRequirement()
8923 TemplateId->Template, TemplateId->Name, in ActOnTypeRequirement()
[all …]
H A DSemaType.cpp1656 TemplateArgsInfo.setLAngleLoc(TemplateId->LAngleLoc); in ConvertDeclSpecToType()
1657 TemplateArgsInfo.setRAngleLoc(TemplateId->RAngleLoc); in ConvertDeclSpecToType()
3338 if (TemplateId->LAngleLoc.isValid()) { in InventTemplateParameter()
3357 TemplateId->TemplateNameLoc), in InventTemplateParameter()
6137 if (!TemplateId) in VisitAutoTypeLoc()
6144 TL.setTemplateKWLoc(TemplateId->TemplateKWLoc); in VisitAutoTypeLoc()
6145 TL.setConceptNameLoc(TemplateId->TemplateNameLoc); in VisitAutoTypeLoc()
6147 TL.setLAngleLoc(TemplateId->LAngleLoc); in VisitAutoTypeLoc()
6148 TL.setRAngleLoc(TemplateId->RAngleLoc); in VisitAutoTypeLoc()
6149 if (TemplateId->NumArgs == 0) in VisitAutoTypeLoc()
[all …]
H A DSemaTemplate.cpp3113 TemplateIdAnnotation *TemplateId, in MatchTemplateParametersToScopeSpecifier() argument
3406 if (TemplateId && !IsFriend) { in MatchTemplateParametersToScopeSpecifier()
4356 TemplateIdAnnotation *TemplateId = D.getName().TemplateId; in ActOnVarTemplateSpecialization() local
4360 SourceLocation LAngleLoc = TemplateId->LAngleLoc; in ActOnVarTemplateSpecialization()
4361 SourceLocation RAngleLoc = TemplateId->RAngleLoc; in ActOnVarTemplateSpecialization()
4363 TemplateName Name = TemplateId->Template.get(); in ActOnVarTemplateSpecialization()
8304 SourceLocation LAngleLoc = TemplateId.LAngleLoc; in ActOnClassTemplateSpecialization()
8305 SourceLocation RAngleLoc = TemplateId.RAngleLoc; in ActOnClassTemplateSpecialization()
8308 TemplateName Name = TemplateId.Template.get(); in ActOnClassTemplateSpecialization()
8329 KWLoc, TemplateNameLoc, SS, &TemplateId, in ActOnClassTemplateSpecialization()
[all …]
H A DSemaDecl.cpp5812 if (!CurClass || CurClass->getIdentifier() != Name.TemplateId->Name) in GetNameFromUnqualifiedId()
5841 TemplateName TName = Name.TemplateId->Template.get(); in GetNameFromUnqualifiedId()
5842 SourceLocation TNameLoc = Name.TemplateId->TemplateNameLoc; in GetNameFromUnqualifiedId()
7464 ? D.getName().TemplateId in ActOnVariableDeclarator()
9548 ? D.getName().TemplateId in ActOnFunctionDeclarator()
10058 TemplateIdAnnotation *TemplateId = D.getName().TemplateId; in ActOnFunctionDeclarator() local
10059 TemplateArgs.setLAngleLoc(TemplateId->LAngleLoc); in ActOnFunctionDeclarator()
10060 TemplateArgs.setRAngleLoc(TemplateId->RAngleLoc); in ActOnFunctionDeclarator()
10061 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ActOnFunctionDeclarator()
10062 TemplateId->NumArgs); in ActOnFunctionDeclarator()
[all …]
H A DSemaExpr.cpp2152 Buffer.setLAngleLoc(Id.TemplateId->LAngleLoc); in DecomposeUnqualifiedId()
2153 Buffer.setRAngleLoc(Id.TemplateId->RAngleLoc); in DecomposeUnqualifiedId()
2155 ASTTemplateArgsPtr TemplateArgsPtr(Id.TemplateId->getTemplateArgs(), in DecomposeUnqualifiedId()
2156 Id.TemplateId->NumArgs); in DecomposeUnqualifiedId()
2159 TemplateName TName = Id.TemplateId->Template.get(); in DecomposeUnqualifiedId()
2160 SourceLocation TNameLoc = Id.TemplateId->TemplateNameLoc; in DecomposeUnqualifiedId()
2722 if (Id.getKind() == UnqualifiedIdKind::IK_TemplateId && Id.TemplateId && in ActOnIdExpression()
2723 Id.TemplateId->Kind == TNK_Var_template) { in ActOnIdExpression()
H A DSemaDeclCXX.cpp3437 << SourceRange(D.getName().TemplateId->LAngleLoc, in ActOnCXXMemberDeclarator()
3438 D.getName().TemplateId->RAngleLoc) in ActOnCXXMemberDeclarator()
3439 << D.getName().TemplateId->LAngleLoc; in ActOnCXXMemberDeclarator()
11781 << SourceRange(Name.TemplateId->LAngleLoc, Name.TemplateId->RAngleLoc); in ActOnUsingDeclaration()
/llvm-project-15.0.7/clang/unittests/AST/
H A DTypePrinterTest.cpp47 TEST(TypePrinter, TemplateId) { in TEST() argument