| /openbsd/src/gnu/llvm/clang/include/clang/Sema/ |
| D | DeclSpec.h | 1784 enum class DeclaratorContext { enum 1843 DeclaratorContext Context; 1946 DeclaratorContext C) in Declarator() 1994 DeclaratorContext getContext() const { return Context; } in getContext() 1997 return (Context == DeclaratorContext::Prototype || in isPrototypeContext() 1998 Context == DeclaratorContext::ObjCParameter || in isPrototypeContext() 1999 Context == DeclaratorContext::ObjCResult || in isPrototypeContext() 2000 Context == DeclaratorContext::LambdaExprParameter); in isPrototypeContext() 2056 case DeclaratorContext::File: in mayOmitIdentifier() 2057 case DeclaratorContext::KNRTypeList: in mayOmitIdentifier() [all …]
|
| /openbsd/src/gnu/llvm/clang/lib/Sema/ |
| D | SemaType.cpp | 57 if (D.getContext() != DeclaratorContext::BlockLiteral || in isOmittedBlockReturnType() 1336 declarator.getContext() == DeclaratorContext::LambdaExpr) { in ConvertDeclSpecToType() 1340 } else if (declarator.getContext() == DeclaratorContext::LambdaExpr || in ConvertDeclSpecToType() 1803 if (declarator.getContext() == DeclaratorContext::BlockLiteral) in ConvertDeclSpecToType() 3525 case DeclaratorContext::LambdaExpr: in GetDeclSpecTypeForDeclarator() 3529 case DeclaratorContext::ObjCParameter: in GetDeclSpecTypeForDeclarator() 3530 case DeclaratorContext::ObjCResult: in GetDeclSpecTypeForDeclarator() 3533 case DeclaratorContext::RequiresExpr: in GetDeclSpecTypeForDeclarator() 3536 case DeclaratorContext::Prototype: in GetDeclSpecTypeForDeclarator() 3537 case DeclaratorContext::LambdaExprParameter: { in GetDeclSpecTypeForDeclarator() [all …]
|
| D | DeclSpec.cpp | 416 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
|
| D | SemaDecl.cpp | 5669 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::Member); in BuildAnonymousStructOrUnion() 5766 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct() 13881 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier() 14887 DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations() 15952 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::Block); in ImplicitlyDefineFunction()
|
| D | SemaDeclObjC.cpp | 1605 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
|
| D | SemaDeclCXX.cpp | 750 : D.getContext() == DeclaratorContext::Condition in ActOnDecompositionDeclarator() 17096 DeclaratorContext::Member); in ActOnFriendTypeDecl()
|
| D | SemaCodeComplete.cpp | 5880 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
|
| D | SemaExpr.cpp | 16463 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
|
| /openbsd/src/gnu/llvm/clang/lib/Parse/ |
| D | ParseDecl.cpp | 44 TypeResult Parser::ParseTypeName(SourceRange *Range, DeclaratorContext Context, in ParseTypeName() 1770 Parser::DeclGroupPtrTy Parser::ParseDeclaration(DeclaratorContext Context, in ParseDeclaration() 1852 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration() 1898 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator() 1917 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator() 1921 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator() 1947 return Context == DeclaratorContext::Member || in MightBeDeclarator() 1948 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator() 2047 DeclaratorContext Context, in ParseDeclGroup() 2125 if (Context == DeclaratorContext::File) { in ParseDeclGroup() [all …]
|
| 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() 310 if (Context != DeclaratorContext::File) { in ParseSingleDeclarationAfterTemplate() 678 DeclaratorContext::TemplateParam); in ParseTemplateParameter() 854 ParseTypeName(/*Range=*/nullptr, DeclaratorContext::TemplateTypeArg) in ParseTypeParameter() 1013 DeclaratorContext::TemplateParam); in ParseNonTypeTemplateParameter() 1580 /*Range=*/nullptr, DeclaratorContext::TemplateArg); in ParseTemplateArgument() [all …]
|
| D | ParseExprCXX.cpp | 1285 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::LambdaExpr); in ParseLambdaExpressionAfterIntroducer() 1581 DeclaratorContext::TypeName); in ParseCXXCasts() 1908 DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression() 1968 Parser::ParseAliasDeclarationInInitStatement(DeclaratorContext Context, in ParseAliasDeclarationInInitStatement() 1971 assert((Context == DeclaratorContext::ForInit || in ParseAliasDeclarationInInitStatement() 1972 Context == DeclaratorContext::SelectionInit) && in ParseAliasDeclarationInInitStatement() 2103 DeclaratorContext::SelectionInit, attrs); in ParseCXXCondition() 2106 DG = ParseSimpleDeclaration(DeclaratorContext::SelectionInit, DeclEnd, in ParseCXXCondition() 2121 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, FRI); in ParseCXXCondition() 2141 Declarator DeclaratorInfo(DS, attrs, DeclaratorContext::Condition); in ParseCXXCondition() [all …]
|
| D | ParseObjc.cpp | 692 allTUVariables.push_back(ParseDeclaration(DeclaratorContext::File, in ParseObjCInterfaceDeclList() 1182 DeclaratorContext Context) { in ParseObjCTypeQualifierList() 1183 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList() 1184 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList() 1190 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter); in ParseObjCTypeQualifierList() 1282 DeclaratorContext context, in ParseObjCTypeName() 1284 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName() 1285 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName() 1287 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName() 1306 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName() [all …]
|
| D | ParseDeclCXX.cpp | 61 Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, in ParseNamespace() 350 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) { in ParseLinkage() 482 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDirectiveOrDeclaration() 531 Decl *Parser::ParseUsingDirective(DeclaratorContext Context, in ParseUsingDirective() 602 bool Parser::ParseUsingDeclarator(DeclaratorContext Context, in ParseUsingDeclarator() 640 if (getLangOpts().CPlusPlus11 && Context == DeclaratorContext::Member && in ParseUsingDeclarator() 695 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDeclaration() 699 bool InInitStatement = Context == DeclaratorContext::SelectionInit || in ParseUsingDeclaration() 700 Context == DeclaratorContext::ForInit; in ParseUsingDeclaration() 924 TemplateInfo.Kind ? DeclaratorContext::AliasTemplate in ParseAliasDeclarationAfterDeclarator() [all …]
|
| D | Parser.cpp | 957 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 965 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 977 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 989 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 999 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 1015 DeclaratorContext::File, ExternLoc, TemplateLoc, DeclEnd, Attrs)); in ParseExternalDeclaration() 1207 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal() 1211 return ParseDeclGroup(DS, DeclaratorContext::File, Attrs); in ParseDeclOrFunctionDefInternal() 1531 DeclaratorContext::KNRTypeList); in ParseKNRParamDeclarations()
|
| D | ParseStmt.cpp | 245 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 248 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 1207 DeclGroupPtrTy Res = ParseDeclaration(DeclaratorContext::Block, DeclEnd, in ParseCompoundStatementBody() 2039 DG = ParseAliasDeclarationInInitStatement(DeclaratorContext::ForInit, in ParseForStatement() 2049 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, in ParseForStatement() 2664 Declarator ExDecl(DS, Attributes, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
|
| D | ParseExpr.cpp | 1230 DeclaratorContext::TypeName); in ParseCastExpression() 1511 DeclaratorContext::TypeName); in ParseCastExpression() 2329 DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait() 3005 DeclaratorContext::TypeName); in ParseParenExpression() 3320 TypeResult TR = ParseTypeName(nullptr, DeclaratorContext::Association); in ParseGenericSelectionExpression() 3536 DeclaratorContext::BlockLiteral); in ParseBlockId() 3576 DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
|
| D | ParseOpenMP.cpp | 322 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective() 644 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
|
| /openbsd/src/gnu/llvm/clang/include/clang/Parse/ |
| D | Parser.h | 1749 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, DeclaratorContext Ctx, 1995 DeclSpec &DS, DeclaratorContext Context = DeclaratorContext::TypeName); 2015 DeclGroupPtrTy ParseAliasDeclarationInInitStatement(DeclaratorContext Context, 2377 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context, 2383 ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd, 2388 bool MightBeDeclarator(DeclaratorContext Context); 2389 DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, DeclaratorContext Context, 2414 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context); 2445 DeclaratorContext Context); 2676 DeclaratorContext Context = DeclaratorContext::TypeName, [all …]
|
| D | RAIIObjectsForParser.h | 206 DeclaratorContext C) in ParsingDeclarator()
|