| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | DeclSpec.h | 1762 enum class DeclaratorContext { enum 1814 DeclaratorContext Context; 1917 DeclaratorContext C) in Declarator() 2027 case DeclaratorContext::File: in mayOmitIdentifier() 2030 case DeclaratorContext::Block: in mayOmitIdentifier() 2067 case DeclaratorContext::File: in mayHaveIdentifier() 2070 case DeclaratorContext::Block: in mayHaveIdentifier() 2105 case DeclaratorContext::File: in mayHaveDecompositionDeclarator() 2163 case DeclaratorContext::File: in mayBeFollowedByCXXDirectInit() 2391 case DeclaratorContext::File: in isFunctionDeclarationContext() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaType.cpp | 3573 case DeclaratorContext::File: in GetDeclSpecTypeForDeclarator() 3574 case DeclaratorContext::Block: in GetDeclSpecTypeForDeclarator() 3582 case DeclaratorContext::CXXNew: in GetDeclSpecTypeForDeclarator() 3656 case DeclaratorContext::File: in GetDeclSpecTypeForDeclarator() 3657 case DeclaratorContext::Member: in GetDeclSpecTypeForDeclarator() 3658 case DeclaratorContext::Block: in GetDeclSpecTypeForDeclarator() 3676 case DeclaratorContext::CXXNew: in GetDeclSpecTypeForDeclarator() 4693 case DeclaratorContext::File: in GetFullTypeForDeclarator() 4754 case DeclaratorContext::Block: in GetFullTypeForDeclarator() 5799 case DeclaratorContext::File: in GetFullTypeForDeclarator() [all …]
|
| H A D | DeclSpec.cpp | 413 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
|
| H A D | SemaDecl.cpp | 5593 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::Member); in BuildAnonymousStructOrUnion() 5690 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct() 13498 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier() 14497 DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations() 15519 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::Block); in ImplicitlyDefineFunction()
|
| H A D | SemaDeclObjC.cpp | 1591 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
|
| H A D | SemaDeclCXX.cpp | 736 : D.getContext() == DeclaratorContext::Condition in ActOnDecompositionDeclarator() 16887 DeclaratorContext::Member); in ActOnFriendTypeDecl()
|
| H A D | SemaCodeComplete.cpp | 5829 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
|
| H A D | SemaExpr.cpp | 16195 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseDecl.cpp | 1933 return Context == DeclaratorContext::Member || in MightBeDeclarator() 2110 if (Context == DeclaratorContext::File) { in ParseDeclGroup() 2879 if (Context == DeclaratorContext::Member) in getDeclSpecContextFromDeclaratorContext() 2881 if (Context == DeclaratorContext::File) in getDeclSpecContextFromDeclaratorContext() 2883 if (Context == DeclaratorContext::TemplateParam) in getDeclSpecContextFromDeclaratorContext() 2885 if (Context == DeclaratorContext::TemplateArg || in getDeclSpecContextFromDeclaratorContext() 2886 Context == DeclaratorContext::TemplateTypeArg) in getDeclSpecContextFromDeclaratorContext() 2891 if (Context == DeclaratorContext::AliasDecl || in getDeclSpecContextFromDeclaratorContext() 2892 Context == DeclaratorContext::AliasTemplate) in getDeclSpecContextFromDeclaratorContext() 2894 if (Context == DeclaratorContext::Association) in getDeclSpecContextFromDeclaratorContext() [all …]
|
| H A D | ParseTemplate.cpp | 39 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseDeclarationStartingWithTemplate() 76 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseTemplateDeclarationOrSpecialization() 187 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseSingleDeclarationAfterTemplate() 201 if (Context == DeclaratorContext::Member) { in ParseSingleDeclarationAfterTemplate() 251 (DeclaratorContext)Context); in ParseSingleDeclarationAfterTemplate() 304 if (Context != DeclaratorContext::File) { in ParseSingleDeclarationAfterTemplate() 672 DeclaratorContext::TemplateParam); in ParseTemplateParameter() 848 ParseTypeName(/*Range=*/nullptr, DeclaratorContext::TemplateTypeArg) in ParseTypeParameter() 997 DeclaratorContext::TemplateParam); in ParseNonTypeTemplateParameter() 1561 /*Range=*/nullptr, DeclaratorContext::TemplateArg); in ParseTemplateArgument() [all …]
|
| H A D | ParseObjc.cpp | 1151 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList() 1152 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList() 1252 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName() 1253 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName() 1255 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName() 1274 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName() 1296 if (context == DeclaratorContext::ObjCParameter) in ParseObjCTypeName() 1497 DeclaratorContext::Prototype); in ParseObjCMethodDecl() 1704 DeclaratorContext::TypeName); in parseObjCTypeArgsOrProtocolQualifiers() 2550 DeclaratorContext::ObjCCatch); in ParseObjCTryStmt() [all …]
|
| H A D | ParseExprCXX.cpp | 1527 DeclaratorContext::TypeName); in ParseCXXCasts() 1854 DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression() 1920 assert((Context == DeclaratorContext::ForInit || in ParseAliasDeclarationInInitStatement() 1921 Context == DeclaratorContext::SelectionInit) && in ParseAliasDeclarationInInitStatement() 2052 DeclaratorContext::SelectionInit, attrs); in ParseCXXCondition() 2090 Declarator DeclaratorInfo(DS, attrs, DeclaratorContext::Condition); in ParseCXXCondition() 2744 DeclaratorContext::ConversionId); in ParseUnqualifiedIdOperator() 3103 DeclaratorContext::CXXNew); in ParseCXXNewExpression() 3426 ParseParameterDeclarationClause(DeclaratorContext::RequiresExpr, in ParseRequiresExpression() 3955 DeclaratorContext::TypeName); in ParseCXXAmbiguousParenExpression() [all …]
|
| H A D | ParseDeclCXX.cpp | 59 Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, in ParseNamespace() 473 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDirectiveOrDeclaration() 522 Decl *Parser::ParseUsingDirective(DeclaratorContext Context, in ParseUsingDirective() 593 bool Parser::ParseUsingDeclarator(DeclaratorContext Context, in ParseUsingDeclarator() 689 Context == DeclaratorContext::ForInit; in ParseUsingDeclaration() 888 : DeclaratorContext::AliasDecl, in ParseAliasDeclarationAfterDeclarator() 1225 DeclaratorContext::TypeName); in ParseBaseTypeSpecifier() 1317 DeclaratorContext::TypeName); in ParseBaseTypeSpecifier() 2646 DeclaratorContext::Member, DeclEnd, AccessAttrs, AS))); in ParseCXXClassMemberDeclaration() 2752 DeclaratorContext::Member); in ParseCXXClassMemberDeclaration() [all …]
|
| H A D | Parser.cpp | 946 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 958 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 971 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 982 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 998 DeclaratorContext::File, ExternLoc, TemplateLoc, DeclEnd, Attrs)); in ParseExternalDeclaration() 1175 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal() 1179 return ParseDeclGroup(DS, DeclaratorContext::File, Attrs); in ParseDeclOrFunctionDefInternal() 1498 DeclaratorContext::KNRTypeList); in ParseKNRParamDeclarations()
|
| H A D | ParseStmt.cpp | 242 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 245 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 1178 DeclGroupPtrTy Res = ParseDeclaration(DeclaratorContext::Block, DeclEnd, in ParseCompoundStatementBody() 2017 DG = ParseAliasDeclarationInInitStatement(DeclaratorContext::ForInit, in ParseForStatement() 2027 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, in ParseForStatement() 2640 Declarator ExDecl(DS, Attributes, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
|
| H A D | ParseExpr.cpp | 1216 DeclaratorContext::TypeName); in ParseCastExpression() 1495 DeclaratorContext::TypeName); in ParseCastExpression() 2302 DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait() 2966 DeclaratorContext::TypeName); in ParseParenExpression() 3283 TypeResult TR = ParseTypeName(nullptr, DeclaratorContext::Association); in ParseGenericSelectionExpression() 3502 DeclaratorContext::BlockLiteral); in ParseBlockId() 3542 DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
|
| H A D | ParseOpenMP.cpp | 321 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective() 647 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
|
| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | Parser.h | 2329 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context, 2340 bool MightBeDeclarator(DeclaratorContext Context); 2366 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context); 2382 DeclaratorContext Context); 2600 DeclaratorContext Context = DeclaratorContext::TypeName, 3001 DeclaratorContext DeclaratorContext, 3027 DeclGroupPtrTy ParseNamespace(DeclaratorContext Context, 3043 Decl *ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context); 3048 Decl *ParseUsingDirective(DeclaratorContext Context, 3067 DeclGroupPtrTy ParseUsingDeclaration(DeclaratorContext Context, [all …]
|
| H A D | RAIIObjectsForParser.h | 206 DeclaratorContext C) in ParsingDeclarator()
|