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.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.h1077 TemplateIdAnnotation *TemplateId; member
1187 void setConstructorTemplateId(TemplateIdAnnotation *TemplateId);
1209 void setTemplateId(TemplateIdAnnotation *TemplateId);
H A DSema.h3456 TemplateIdAnnotation *TemplateId,
8503 TemplateIdAnnotation *TemplateId);
11357 const CXXScopeSpec &SS, TemplateIdAnnotation *TemplateId,
11479 TemplateIdAnnotation &TemplateId, const ParsedAttributesView &Attr,
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseExprCXX.cpp372 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseOptionalCXXScopeSpecifier() local
379 *LastII = TemplateId->Name; in ParseOptionalCXXScopeSpecifier()
389 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ParseOptionalCXXScopeSpecifier()
390 TemplateId->NumArgs); in ParseOptionalCXXScopeSpecifier()
392 if (TemplateId->isInvalid() || in ParseOptionalCXXScopeSpecifier()
395 TemplateId->TemplateKWLoc, in ParseOptionalCXXScopeSpecifier()
396 TemplateId->Template, in ParseOptionalCXXScopeSpecifier()
397 TemplateId->TemplateNameLoc, in ParseOptionalCXXScopeSpecifier()
398 TemplateId->LAngleLoc, in ParseOptionalCXXScopeSpecifier()
400 TemplateId->RAngleLoc, in ParseOptionalCXXScopeSpecifier()
[all …]
H A DParseDeclCXX.cpp766 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseUsingDeclaration() local
768 if (TemplateId->mightBeType()) { in ParseUsingDeclaration()
778 UELoc, Loc, *TemplateId->Name, in ParseUsingDeclaration()
782 << TemplateId->Name->getName() in ParseUsingDeclaration()
783 << SourceRange(TemplateId->TemplateNameLoc, TemplateId->RAngleLoc); in ParseUsingDeclaration()
948 Range = SourceRange(D.Name.TemplateId->LAngleLoc, in ParseAliasDeclarationAfterDeclarator()
949 D.Name.TemplateId->RAngleLoc); in ParseAliasDeclarationAfterDeclarator()
1450 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseBaseTypeSpecifier() local
1451 if (TemplateId->mightBeType()) { in ParseBaseTypeSpecifier()
1922 TemplateIdAnnotation *TemplateId = nullptr; in ParseClassSpecifier() local
[all …]
H A DParseTemplate.cpp1314 TemplateIdAnnotation *TemplateId = TemplateIdAnnotation::Create( in AnnotateTemplateIdToken() local
1318 Tok.setAnnotationValue(TemplateId); in AnnotateTemplateIdToken()
1354 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in AnnotateTemplateIdTokenAsType() local
1355 assert(TemplateId->mightBeType() && in AnnotateTemplateIdTokenAsType()
1358 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in AnnotateTemplateIdTokenAsType()
1359 TemplateId->NumArgs); in AnnotateTemplateIdTokenAsType()
1362 TemplateId->isInvalid() in AnnotateTemplateIdTokenAsType()
1365 getCurScope(), SS, TemplateId->TemplateKWLoc, in AnnotateTemplateIdTokenAsType()
1366 TemplateId->Template, TemplateId->Name, in AnnotateTemplateIdTokenAsType()
1367 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in AnnotateTemplateIdTokenAsType()
[all …]
H A DParseTentative.cpp1336 auto IsPlaceholderSpecifier = [&](TemplateIdAnnotation *TemplateId, in isCXXDeclarationSpecifier()
1340 return TemplateId->Kind == TNK_Concept_template && in isCXXDeclarationSpecifier()
1362 (TemplateId->NumArgs == 0 && in isCXXDeclarationSpecifier()
1611 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in isCXXDeclarationSpecifier() local
1614 if ((TemplateId->hasInvalidName() || in isCXXDeclarationSpecifier()
1615 TemplateId->Kind == TNK_Undeclared_template) && in isCXXDeclarationSpecifier()
1624 if (TemplateId->hasInvalidName()) in isCXXDeclarationSpecifier()
1626 if (IsPlaceholderSpecifier(TemplateId, /*Lookahead=*/0)) in isCXXDeclarationSpecifier()
1628 if (TemplateId->Kind != TNK_Type_template) in isCXXDeclarationSpecifier()
1643 TemplateIdAnnotation *TemplateId = in isCXXDeclarationSpecifier() local
[all …]
H A DParser.cpp2080 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeToken() local
2081 if (!TemplateId->mightBeType()) { in TryAnnotateTypeOrScopeToken()
2087 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in TryAnnotateTypeOrScopeToken()
2088 TemplateId->NumArgs); in TryAnnotateTypeOrScopeToken()
2090 Ty = TemplateId->isInvalid() in TryAnnotateTypeOrScopeToken()
2093 getCurScope(), TypenameLoc, SS, TemplateId->TemplateKWLoc, in TryAnnotateTypeOrScopeToken()
2094 TemplateId->Template, TemplateId->Name, in TryAnnotateTypeOrScopeToken()
2095 TemplateId->TemplateNameLoc, TemplateId->LAngleLoc, in TryAnnotateTypeOrScopeToken()
2096 TemplateArgsPtr, TemplateId->RAngleLoc); in TryAnnotateTypeOrScopeToken()
2219 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in TryAnnotateTypeOrScopeTokenAfterScopeSpec() local
[all …]
H A DParseDecl.cpp3783 TemplateIdAnnotation *TemplateId = Next.is(tok::annot_template_id) in ParseDeclarationSpecifiers() local
3786 if (TemplateId && TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
3794 if (TemplateId && TemplateId->Kind == TNK_Type_template) { in ParseDeclarationSpecifiers()
3806 TemplateId->Name && in ParseDeclarationSpecifiers()
3807 Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS) && in ParseDeclarationSpecifiers()
3826 if (TemplateId && TemplateId->Kind == TNK_Concept_template) { in ParseDeclarationSpecifiers()
4119 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseDeclarationSpecifiers() local
4121 if (TemplateId->hasInvalidName()) { in ParseDeclarationSpecifiers()
4126 if (TemplateId->Kind == TNK_Concept_template) { in ParseDeclarationSpecifiers()
4129 if (TemplateId->hasInvalidArgs()) in ParseDeclarationSpecifiers()
[all …]
H A DParseExpr.cpp1700 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Next); in ParseCastExpression() local
1701 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
1722 TemplateIdAnnotation *TemplateId = takeTemplateIdAnnotation(Tok); in ParseCastExpression() local
1723 if (TemplateId->Kind == TNK_Type_template) { in ParseCastExpression()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DDeclSpec.cpp32 void UnqualifiedId::setTemplateId(TemplateIdAnnotation *TemplateId) { in setTemplateId() argument
33 assert(TemplateId && "NULL template-id annotation?"); in setTemplateId()
34 assert(!TemplateId->isInvalid() && in setTemplateId()
38 this->TemplateId = TemplateId; in setTemplateId()
39 StartLocation = TemplateId->TemplateNameLoc; in setTemplateId()
40 EndLocation = TemplateId->RAngleLoc; in setTemplateId()
43 void UnqualifiedId::setConstructorTemplateId(TemplateIdAnnotation *TemplateId) { in setConstructorTemplateId() argument
44 assert(TemplateId && "NULL template-id annotation?"); in setConstructorTemplateId()
45 assert(!TemplateId->isInvalid() && in setConstructorTemplateId()
49 this->TemplateId = TemplateId; in setConstructorTemplateId()
[all …]
H A DSemaExprCXX.cpp8225 TemplateIdAnnotation *TemplateId = SecondTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
8226 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ActOnPseudoDestructorExpr()
8227 TemplateId->NumArgs); in ActOnPseudoDestructorExpr()
8230 TemplateId->TemplateKWLoc, in ActOnPseudoDestructorExpr()
8231 TemplateId->Template, in ActOnPseudoDestructorExpr()
8232 TemplateId->Name, in ActOnPseudoDestructorExpr()
8233 TemplateId->TemplateNameLoc, in ActOnPseudoDestructorExpr()
8234 TemplateId->LAngleLoc, in ActOnPseudoDestructorExpr()
8236 TemplateId->RAngleLoc, in ActOnPseudoDestructorExpr()
8278 TemplateIdAnnotation *TemplateId = FirstTypeName.TemplateId; in ActOnPseudoDestructorExpr() local
[all …]
H A DSemaType.cpp1303 if (TemplateIdAnnotation *TemplateId = DS.getRepAsTemplateId()) { in ConvertDeclSpecToType() local
1305 cast<ConceptDecl>(TemplateId->Template.get().getAsTemplateDecl()); in ConvertDeclSpecToType()
1307 TemplateArgsInfo.setLAngleLoc(TemplateId->LAngleLoc); in ConvertDeclSpecToType()
1308 TemplateArgsInfo.setRAngleLoc(TemplateId->RAngleLoc); in ConvertDeclSpecToType()
1309 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId->getTemplateArgs(), in ConvertDeclSpecToType()
1310 TemplateId->NumArgs); in ConvertDeclSpecToType()
3019 TemplateIdAnnotation *TemplateId = D.getDeclSpec().getRepAsTemplateId(); in InventTemplateParameter() local
3020 TemplateArgumentListInfo TemplateArgsInfo(TemplateId->LAngleLoc, in InventTemplateParameter()
3021 TemplateId->RAngleLoc); in InventTemplateParameter()
3023 if (TemplateId->LAngleLoc.isValid()) { in InventTemplateParameter()
[all …]
H A DSemaTemplate.cpp1059 makeTemplateArgumentListInfo(Sema &S, TemplateIdAnnotation &TemplateId) { in makeTemplateArgumentListInfo() argument
1060 TemplateArgumentListInfo TemplateArgs(TemplateId.LAngleLoc, in makeTemplateArgumentListInfo()
1061 TemplateId.RAngleLoc); in makeTemplateArgumentListInfo()
1062 ASTTemplateArgsPtr TemplateArgsPtr(TemplateId.getTemplateArgs(), in makeTemplateArgumentListInfo()
1063 TemplateId.NumArgs); in makeTemplateArgumentListInfo()
2677 TemplateIdAnnotation *TemplateId, in MatchTemplateParametersToScopeSpecifier() argument
2970 if (TemplateId && !IsFriend) { in MatchTemplateParametersToScopeSpecifier()
2973 DiagnoseMissingExplicitSpecialization(SourceRange(TemplateId->LAngleLoc, in MatchTemplateParametersToScopeSpecifier()
2974 TemplateId->RAngleLoc)); in MatchTemplateParametersToScopeSpecifier()
3954 TemplateIdAnnotation *TemplateId = D.getName().TemplateId; in ActOnVarTemplateSpecialization() local
[all …]
H A DSemaDecl.cpp5849 if (!CurClass || CurClass->getIdentifier() != Name.TemplateId->Name) in GetNameFromUnqualifiedId()
5878 TemplateName TName = Name.TemplateId->Template.get(); in GetNameFromUnqualifiedId()
5879 SourceLocation TNameLoc = Name.TemplateId->TemplateNameLoc; in GetNameFromUnqualifiedId()
6077 TemplateIdAnnotation *TemplateId, in diagnoseQualifiedDeclaration() argument
6109 if (!Cur->Encloses(DC) && !(TemplateId || IsMemberSpecialization)) { in diagnoseQualifiedDeclaration()
6164 if (TemplateId && TemplateId->TemplateKWLoc.isValid()) in diagnoseQualifiedDeclaration()
6166 << FixItHint::CreateRemoval(TemplateId->TemplateKWLoc); in diagnoseQualifiedDeclaration()
6255 TemplateIdAnnotation *TemplateId = in HandleDeclarator() local
6257 ? D.getName().TemplateId in HandleDeclarator()
6260 D.getIdentifierLoc(), TemplateId, in HandleDeclarator()
[all …]
H A DSemaDeclCXX.cpp3466 << SourceRange(D.getName().TemplateId->LAngleLoc, in ActOnCXXMemberDeclarator()
3467 D.getName().TemplateId->RAngleLoc) in ActOnCXXMemberDeclarator()
3468 << D.getName().TemplateId->LAngleLoc; in ActOnCXXMemberDeclarator()
3480 TemplateIdAnnotation *TemplateId = in ActOnCXXMemberDeclarator() local
3482 ? D.getName().TemplateId in ActOnCXXMemberDeclarator()
3485 TemplateId, in ActOnCXXMemberDeclarator()
12234 << SourceRange(Name.TemplateId->LAngleLoc, Name.TemplateId->RAngleLoc); in ActOnUsingDeclaration()
19046 Declarator.getCXXScopeSpec(), /*TemplateId=*/nullptr, in ActOnStartFunctionDeclarationDeclarator()
H A DSemaExpr.cpp2325 Buffer.setLAngleLoc(Id.TemplateId->LAngleLoc); in DecomposeUnqualifiedId()
2326 Buffer.setRAngleLoc(Id.TemplateId->RAngleLoc); in DecomposeUnqualifiedId()
2328 ASTTemplateArgsPtr TemplateArgsPtr(Id.TemplateId->getTemplateArgs(), in DecomposeUnqualifiedId()
2329 Id.TemplateId->NumArgs); in DecomposeUnqualifiedId()
2332 TemplateName TName = Id.TemplateId->Template.get(); in DecomposeUnqualifiedId()
2333 SourceLocation TNameLoc = Id.TemplateId->TemplateNameLoc; in DecomposeUnqualifiedId()
2858 if (Id.getKind() == UnqualifiedIdKind::IK_TemplateId && Id.TemplateId && in ActOnIdExpression()
2859 Id.TemplateId->Kind == TNK_Var_template) { in ActOnIdExpression()