Home
last modified time | relevance | path

Searched refs:DeclaratorContext (Results 1 – 19 of 19) sorted by relevance

/external/llvm-project/clang/include/clang/Sema/
DDeclSpec.h1758 enum class DeclaratorContext { enum
1809 DeclaratorContext Context;
1891 Declarator(const DeclSpec &ds, DeclaratorContext C) in Declarator()
1932 DeclaratorContext getContext() const { return Context; } in getContext()
1935 return (Context == DeclaratorContext::Prototype || in isPrototypeContext()
1936 Context == DeclaratorContext::ObjCParameter || in isPrototypeContext()
1937 Context == DeclaratorContext::ObjCResult || in isPrototypeContext()
1938 Context == DeclaratorContext::LambdaExprParameter); in isPrototypeContext()
1994 case DeclaratorContext::File: in mayOmitIdentifier()
1995 case DeclaratorContext::KNRTypeList: in mayOmitIdentifier()
[all …]
/external/llvm-project/clang/lib/Sema/
DSemaType.cpp53 if (D.getContext() != DeclaratorContext::BlockLiteral || in isOmittedBlockReturnType()
1352 declarator.getContext() == DeclaratorContext::LambdaExpr) { in ConvertDeclSpecToType()
1356 } else if (declarator.getContext() == DeclaratorContext::LambdaExpr || in ConvertDeclSpecToType()
1761 if (declarator.getContext() == DeclaratorContext::BlockLiteral) in ConvertDeclSpecToType()
3326 case DeclaratorContext::LambdaExpr: in GetDeclSpecTypeForDeclarator()
3330 case DeclaratorContext::ObjCParameter: in GetDeclSpecTypeForDeclarator()
3331 case DeclaratorContext::ObjCResult: in GetDeclSpecTypeForDeclarator()
3334 case DeclaratorContext::RequiresExpr: in GetDeclSpecTypeForDeclarator()
3337 case DeclaratorContext::Prototype: in GetDeclSpecTypeForDeclarator()
3338 case DeclaratorContext::LambdaExprParameter: { in GetDeclSpecTypeForDeclarator()
[all …]
DDeclSpec.cpp411 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
DSemaDecl.cpp5163 Declarator Dc(DS, DeclaratorContext::Member); in BuildAnonymousStructOrUnion()
5260 Declarator Dc(DS, DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct()
12821 Declarator D(DS, DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier()
13801 Declarator ParamD(DS, DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations()
14748 Declarator D(DS, DeclaratorContext::Block); in ImplicitlyDefineFunction()
DSemaDeclObjC.cpp1589 Declarator D(DS, DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
DSemaDeclCXX.cpp738 : D.getContext() == DeclaratorContext::Condition in ActOnDecompositionDeclarator()
16351 Declarator TheDeclarator(DS, DeclaratorContext::Member); in ActOnFriendTypeDecl()
DSemaCodeComplete.cpp5402 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
DSemaExpr.cpp15187 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
/external/llvm-project/clang/lib/Parse/
DParseDecl.cpp44 DeclaratorContext Context, in ParseTypeName()
1651 Parser::ParseDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd, in ParseDeclaration()
1718 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration()
1759 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator()
1778 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1782 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator()
1808 return Context == DeclaratorContext::Member || in MightBeDeclarator()
1809 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator()
1908 DeclaratorContext Context, in ParseDeclGroup()
1967 if (Context == DeclaratorContext::File) { in ParseDeclGroup()
[all …]
DParseTemplate.cpp38 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseDeclarationStartingWithTemplate()
75 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseTemplateDeclarationOrSpecialization()
186 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseSingleDeclarationAfterTemplate()
200 if (Context == DeclaratorContext::Member) { in ParseSingleDeclarationAfterTemplate()
248 ParsingDeclarator DeclaratorInfo(*this, DS, (DeclaratorContext)Context); in ParseSingleDeclarationAfterTemplate()
281 if (Context != DeclaratorContext::File) { in ParseSingleDeclarationAfterTemplate()
648 Declarator D(DS, DeclaratorContext::TemplateParam); in ParseTemplateParameter()
824 ParseTypeName(/*Range=*/nullptr, DeclaratorContext::TemplateTypeArg) in ParseTypeParameter()
969 Declarator ParamDecl(DS, DeclaratorContext::TemplateParam); in ParseNonTypeTemplateParameter()
1529 /*Range=*/nullptr, DeclaratorContext::TemplateArg); in ParseTemplateArgument()
[all …]
DParseObjc.cpp660 ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs)); in ParseObjCInterfaceDeclList()
1143 DeclaratorContext Context) { in ParseObjCTypeQualifierList()
1144 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList()
1145 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList()
1150 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter); in ParseObjCTypeQualifierList()
1238 DeclaratorContext context, in ParseObjCTypeName()
1240 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName()
1241 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName()
1243 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName()
1262 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName()
[all …]
DParseDeclCXX.cpp58 Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, in ParseNamespace()
335 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) { in ParseLinkage()
463 Parser::ParseUsingDirectiveOrDeclaration(DeclaratorContext Context, in ParseUsingDirectiveOrDeclaration()
518 Decl *Parser::ParseUsingDirective(DeclaratorContext Context, in ParseUsingDirective()
589 bool Parser::ParseUsingDeclarator(DeclaratorContext Context, in ParseUsingDeclarator()
627 if (getLangOpts().CPlusPlus11 && Context == DeclaratorContext::Member && in ParseUsingDeclarator()
674 Parser::ParseUsingDeclaration(DeclaratorContext Context, in ParseUsingDeclaration()
838 TemplateInfo.Kind ? DeclaratorContext::AliasTemplate in ParseAliasDeclarationAfterDeclarator()
839 : DeclaratorContext::AliasDecl, in ParseAliasDeclarationAfterDeclarator()
1150 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseBaseTypeSpecifier()
[all …]
DParser.cpp904 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
914 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
925 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
934 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
949 DeclaratorContext::File, ExternLoc, TemplateLoc, DeclEnd, attrs)); in ParseExternalDeclaration()
1130 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal()
1134 return ParseDeclGroup(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal()
1443 Declarator ParmDeclarator(DS, DeclaratorContext::KNRTypeList); in ParseKNRParamDeclarations()
DParseExprCXX.cpp1247 Declarator D(DS, DeclaratorContext::LambdaExpr); in ParseLambdaExpressionAfterIntroducer()
1570 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCXXCasts()
1896 Declarator DeclaratorInfo(DS, DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression()
2045 DeclaratorContext::SelectionInit, DeclEnd, attrs, /*RequireSemi=*/true); in ParseCXXCondition()
2053 DeclGroupPtrTy DG = ParseSimpleDeclaration(DeclaratorContext::ForInit, in ParseCXXCondition()
2070 Declarator DeclaratorInfo(DS, DeclaratorContext::Condition); in ParseCXXCondition()
2714 Declarator D(DS, DeclaratorContext::ConversionId); in ParseUnqualifiedIdOperator()
3072 Declarator DeclaratorInfo(DS, DeclaratorContext::CXXNew); in ParseCXXNewExpression()
3394 ParseParameterDeclarationClause(DeclaratorContext::RequiresExpr, in ParseRequiresExpression()
3922 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCXXAmbiguousParenExpression()
[all …]
DParseStmt.cpp218 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, Attrs, in ParseStatementOrDeclarationAfterAttributes()
221 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, Attrs); in ParseStatementOrDeclarationAfterAttributes()
1121 ParseDeclaration(DeclaratorContext::Block, DeclEnd, attrs); in ParseCompoundStatementBody()
1874 DeclaratorContext::ForInit, DeclEnd, attrs, false, in ParseForStatement()
2473 Declarator ExDecl(DS, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
DParseExpr.cpp1214 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCastExpression()
1488 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCastExpression()
2264 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait()
2890 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseParenExpression()
3417 Declarator DeclaratorInfo(DS, DeclaratorContext::BlockLiteral); in ParseBlockId()
3456 Declarator ParamInfo(DS, DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
DParseOpenMP.cpp300 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective()
626 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
/external/llvm-project/clang/include/clang/Parse/
DParser.h1730 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, DeclaratorContext Ctx,
2314 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context,
2319 ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd,
2323 bool MightBeDeclarator(DeclaratorContext Context);
2324 DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, DeclaratorContext Context,
2348 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context);
2364 DeclaratorContext Context);
2577 DeclaratorContext Context = DeclaratorContext::TypeName,
2918 DeclaratorContext DeclaratorContext,
2944 DeclGroupPtrTy ParseNamespace(DeclaratorContext Context,
[all …]
DRAIIObjectsForParser.h204 ParsingDeclarator(Parser &P, const ParsingDeclSpec &DS, DeclaratorContext C) in ParsingDeclarator()