Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DParsedTemplate.h204 TemplateIdAnnotation *TemplateId = new (llvm::safe_malloc( in Create() local
209 CleanupList.push_back(TemplateId); in Create()
210 return TemplateId; in Create()
H A DDeclSpec.h1079 TemplateIdAnnotation *TemplateId; member
1189 void setConstructorTemplateId(TemplateIdAnnotation *TemplateId);
1211 void setTemplateId(TemplateIdAnnotation *TemplateId);
H A DSema.h3881 TemplateIdAnnotation *TemplateId,
8778 TemplateIdAnnotation *TemplateId);
11575 const CXXScopeSpec &SS, TemplateIdAnnotation *TemplateId,
11697 TemplateIdAnnotation &TemplateId, const ParsedAttributesView &Attr,
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp334 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseOptionalCXXScopeSpecifier() local
341 *LastII = TemplateId->Name; in ParseOptionalCXXScopeSpecifier()
351 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ParseOptionalCXXScopeSpecifier()
352 TemplateId->NumArgs); in ParseOptionalCXXScopeSpecifier()
354 if (TemplateId->isInvalid() || in ParseOptionalCXXScopeSpecifier()
357 TemplateId->TemplateKWLoc, in ParseOptionalCXXScopeSpecifier()
358 TemplateId->Template, in ParseOptionalCXXScopeSpecifier()
359 TemplateId->TemplateNameLoc, in ParseOptionalCXXScopeSpecifier()
360 TemplateId->LAngleLoc, in ParseOptionalCXXScopeSpecifier()
362 TemplateId->RAngleLoc, in ParseOptionalCXXScopeSpecifier()
[all …]
H A DParseDeclCXX.cpp678 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseUsingDeclaration() local
680 if (TemplateId->mightBeType()) { in ParseUsingDeclaration()
690 UELoc, Loc, *TemplateId->Name, in ParseUsingDeclaration()
694 << TemplateId->Name->getName() in ParseUsingDeclaration()
695 << SourceRange(TemplateId->TemplateNameLoc, TemplateId->RAngleLoc); in ParseUsingDeclaration()
864 Range = SourceRange(D.Name.TemplateId->LAngleLoc, in ParseAliasDeclarationAfterDeclarator()
865 D.Name.TemplateId->RAngleLoc); in ParseAliasDeclarationAfterDeclarator()
1334 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseBaseTypeSpecifier() local
1335 if (TemplateId->mightBeType()) { in ParseBaseTypeSpecifier()
1761 TemplateIdAnnotation *TemplateId = nullptr; in ParseClassSpecifier() local
[all …]
H A DParseTemplate.cpp1142 TemplateIdAnnotation *TemplateId = TemplateIdAnnotation::Create( in AnnotateTemplateIdToken() local
1146 Tok.setAnnotationValue(TemplateId); in AnnotateTemplateIdToken()
1167 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in AnnotateTemplateIdTokenAsType() local
1168 assert(TemplateId->mightBeType() && in AnnotateTemplateIdTokenAsType()
1171 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in AnnotateTemplateIdTokenAsType()
1172 TemplateId->NumArgs); in AnnotateTemplateIdTokenAsType()
1175 TemplateId->isInvalid() in AnnotateTemplateIdTokenAsType()
1178 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
1179 TemplateId->Template, TemplateId->Name, in AnnotateTemplateIdTokenAsType()
1180 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in AnnotateTemplateIdTokenAsType()
[all …]
H A DParseTentative.cpp1005 auto IsPlaceholderSpecifier = [&](TemplateIdAnnotation *TemplateId, in isCXXDeclarationSpecifier()
1009 return TemplateId->Kind == TNK_Concept_template && in isCXXDeclarationSpecifier()
1031 (TemplateId->NumArgs == 0 && in isCXXDeclarationSpecifier()
1280 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in isCXXDeclarationSpecifier() local
1283 if ((TemplateId->hasInvalidName() || in isCXXDeclarationSpecifier()
1284 TemplateId->Kind == TNK_Undeclared_template) && in isCXXDeclarationSpecifier()
1293 if (TemplateId->hasInvalidName()) in isCXXDeclarationSpecifier()
1295 if (IsPlaceholderSpecifier(TemplateId, /*Lookahead=*/0)) in isCXXDeclarationSpecifier()
1297 if (TemplateId->Kind != TNK_Type_template) in isCXXDeclarationSpecifier()
1312 TemplateIdAnnotation *TemplateId = in isCXXDeclarationSpecifier() local
[all …]
H A DParser.cpp1973 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeToken() local
1974 if (!TemplateId->mightBeType()) { in TryAnnotateTypeOrScopeToken()
1980 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in TryAnnotateTypeOrScopeToken()
1981 TemplateId->NumArgs); in TryAnnotateTypeOrScopeToken()
1983 Ty = TemplateId->isInvalid() in TryAnnotateTypeOrScopeToken()
1986 getCurScope(), TypenameLoc, SS, TemplateId->TemplateKWLoc, in TryAnnotateTypeOrScopeToken()
1987 TemplateId->Template, TemplateId->Name, in TryAnnotateTypeOrScopeToken()
1988 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in TryAnnotateTypeOrScopeToken()
1989 TemplateArgsPtr, TemplateId->RAngleLoc); in TryAnnotateTypeOrScopeToken()
2109 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local
[all …]
H A DParseDecl.cpp3565 TemplateIdAnnotation *TemplateId = Next.is(tok::annot_template_id) in ParseDeclarationSpecifiers() local
3568 if (TemplateId && TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
3576 if (TemplateId && TemplateId->Kind == TNK_Type_template) { in ParseDeclarationSpecifiers()
3588 TemplateId->Name && in ParseDeclarationSpecifiers()
3589 Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS) && in ParseDeclarationSpecifiers()
3608 if (TemplateId && TemplateId->Kind == TNK_Concept_template) { in ParseDeclarationSpecifiers()
3902 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseDeclarationSpecifiers() local
3904 if (TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
3909 if (TemplateId->Kind == TNK_Concept_template) { in ParseDeclarationSpecifiers()
3912 if (TemplateId->hasInvalidArgs()) in ParseDeclarationSpecifiers()
[all …]
H A DParseExpr.cpp1376 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Next); in ParseCastExpression() local
1377 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
1398 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseCastExpression() local
1399 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp29 void UnqualifiedId::setTemplateId(TemplateIdAnnotation *TemplateId) { in setTemplateId() argument
30 assert(TemplateId && "NULL template-id annotation?"); in setTemplateId()
31 assert(!TemplateId->isInvalid() && in setTemplateId()
35 this->TemplateId = TemplateId; in setTemplateId()
36 StartLocation = TemplateId->TemplateNameLoc; in setTemplateId()
37 EndLocation = TemplateId->RAngleLoc; in setTemplateId()
40 void UnqualifiedId::setConstructorTemplateId(TemplateIdAnnotation *TemplateId) { in setConstructorTemplateId() argument
41 assert(TemplateId && "NULL template-id annotation?"); in setConstructorTemplateId()
42 assert(!TemplateId->isInvalid() && in setConstructorTemplateId()
46 this->TemplateId = TemplateId; in setConstructorTemplateId()
[all …]
H A DSemaExprCXX.cpp7246 TemplateIdAnnotation *TemplateId = SecondTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
7247 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ActOnPseudoDestructorExpr()
7248 TemplateId->NumArgs); in ActOnPseudoDestructorExpr()
7251 TemplateId->TemplateKWLoc, in ActOnPseudoDestructorExpr()
7252 TemplateId->Template, in ActOnPseudoDestructorExpr()
7253 TemplateId->Name, in ActOnPseudoDestructorExpr()
7254 TemplateId->TemplateNameLoc, in ActOnPseudoDestructorExpr()
7255 TemplateId->LAngleLoc, in ActOnPseudoDestructorExpr()
7257 TemplateId->RAngleLoc, in ActOnPseudoDestructorExpr()
7299 TemplateIdAnnotation *TemplateId = FirstTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
[all …]
H A DSemaType.cpp1312 if (TemplateIdAnnotation *TemplateId = DS.getRepAsTemplateId()) { in ConvertDeclSpecToType() local
1314 cast<ConceptDecl>(TemplateId->Template.get().getAsTemplateDecl()); in ConvertDeclSpecToType()
1316 TemplateArgsInfo.setLAngleLoc(TemplateId->LAngleLoc); in ConvertDeclSpecToType()
1317 TemplateArgsInfo.setRAngleLoc(TemplateId->RAngleLoc); in ConvertDeclSpecToType()
1318 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ConvertDeclSpecToType()
1319 TemplateId->NumArgs); in ConvertDeclSpecToType()
3071 TemplateIdAnnotation *TemplateId = D.getDeclSpec().getRepAsTemplateId(); in InventTemplateParameter() local
3072 TemplateArgumentListInfo TemplateArgsInfo(TemplateId->LAngleLoc, in InventTemplateParameter()
3073 TemplateId->RAngleLoc); in InventTemplateParameter()
3075 if (TemplateId->LAngleLoc.isValid()) { in InventTemplateParameter()
[all …]
H A DSemaTemplate.cpp1062 makeTemplateArgumentListInfo(Sema &S, TemplateIdAnnotation &TemplateId) { in makeTemplateArgumentListInfo() argument
1063 TemplateArgumentListInfo TemplateArgs(TemplateId.LAngleLoc, in makeTemplateArgumentListInfo()
1064 TemplateId.RAngleLoc); in makeTemplateArgumentListInfo()
1065 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId.getTemplateArgs(), in makeTemplateArgumentListInfo()
1066 TemplateId.NumArgs); in makeTemplateArgumentListInfo()
2718 TemplateIdAnnotation *TemplateId, in MatchTemplateParametersToScopeSpecifier() argument
3012 if (TemplateId && !IsFriend) { in MatchTemplateParametersToScopeSpecifier()
3015 DiagnoseMissingExplicitSpecialization(SourceRange(TemplateId->LAngleLoc, in MatchTemplateParametersToScopeSpecifier()
3016 TemplateId->RAngleLoc)); in MatchTemplateParametersToScopeSpecifier()
4238 TemplateIdAnnotation *TemplateId = D.getName().TemplateId; in ActOnVarTemplateSpecialization() local
[all …]
H A DSemaDecl.cpp5963 if (!CurClass || CurClass->getIdentifier() != Name.TemplateId->Name) in GetNameFromUnqualifiedId()
5992 TemplateName TName = Name.TemplateId->Template.get(); in GetNameFromUnqualifiedId()
5993 SourceLocation TNameLoc = Name.TemplateId->TemplateNameLoc; in GetNameFromUnqualifiedId()
6191 TemplateIdAnnotation *TemplateId, in diagnoseQualifiedDeclaration() argument
6223 if (!Cur->Encloses(DC) && !(TemplateId || IsMemberSpecialization)) { in diagnoseQualifiedDeclaration()
6278 if (TemplateId && TemplateId->TemplateKWLoc.isValid()) in diagnoseQualifiedDeclaration()
6280 << FixItHint::CreateRemoval(TemplateId->TemplateKWLoc); in diagnoseQualifiedDeclaration()
6370 TemplateIdAnnotation *TemplateId = in HandleDeclarator() local
6372 ? D.getName().TemplateId in HandleDeclarator()
6375 D.getIdentifierLoc(), TemplateId, in HandleDeclarator()
[all …]
H A DSemaDeclCXX.cpp3579 << SourceRange(D.getName().TemplateId->LAngleLoc, in ActOnCXXMemberDeclarator()
3580 D.getName().TemplateId->RAngleLoc) in ActOnCXXMemberDeclarator()
3581 << D.getName().TemplateId->LAngleLoc; in ActOnCXXMemberDeclarator()
3593 TemplateIdAnnotation *TemplateId = in ActOnCXXMemberDeclarator() local
3595 ? D.getName().TemplateId in ActOnCXXMemberDeclarator()
3598 TemplateId, in ActOnCXXMemberDeclarator()
12562 << SourceRange(Name.TemplateId->LAngleLoc, Name.TemplateId->RAngleLoc); in ActOnUsingDeclaration()
H A DSemaExpr.cpp2432 Buffer.setLAngleLoc(Id.TemplateId->LAngleLoc); in DecomposeUnqualifiedId()
2433 Buffer.setRAngleLoc(Id.TemplateId->RAngleLoc); in DecomposeUnqualifiedId()
2435 ASTTemplateArgsPtr TemplateArgsPtr(Id.TemplateId->getTemplateArgs(), in DecomposeUnqualifiedId()
2436 Id.TemplateId->NumArgs); in DecomposeUnqualifiedId()
2439 TemplateName TName = Id.TemplateId->Template.get(); in DecomposeUnqualifiedId()
2440 SourceLocation TNameLoc = Id.TemplateId->TemplateNameLoc; in DecomposeUnqualifiedId()
2905 if (Id.getKind() == UnqualifiedIdKind::IK_TemplateId && Id.TemplateId && in ActOnIdExpression()
2906 Id.TemplateId->Kind == TNK_Var_template) { in ActOnIdExpression()