Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DDeclSpec.h1761 enum class DeclaratorContext { enum
1812 DeclaratorContext Context;
1894 Declarator(const DeclSpec &ds, DeclaratorContext C) in Declarator()
1935 DeclaratorContext getContext() const { return Context; } in getContext()
1938 return (Context == DeclaratorContext::Prototype || in isPrototypeContext()
1939 Context == DeclaratorContext::ObjCParameter || in isPrototypeContext()
1940 Context == DeclaratorContext::ObjCResult || in isPrototypeContext()
1941 Context == DeclaratorContext::LambdaExprParameter); in isPrototypeContext()
1997 case DeclaratorContext::File: in mayOmitIdentifier()
1998 case DeclaratorContext::KNRTypeList: in mayOmitIdentifier()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaType.cpp53 if (D.getContext() != DeclaratorContext::BlockLiteral || in isOmittedBlockReturnType()
1332 declarator.getContext() == DeclaratorContext::LambdaExpr) { in ConvertDeclSpecToType()
1336 } else if (declarator.getContext() == DeclaratorContext::LambdaExpr || in ConvertDeclSpecToType()
1762 if (declarator.getContext() == DeclaratorContext::BlockLiteral) in ConvertDeclSpecToType()
3363 case DeclaratorContext::LambdaExpr: in GetDeclSpecTypeForDeclarator()
3367 case DeclaratorContext::ObjCParameter: in GetDeclSpecTypeForDeclarator()
3368 case DeclaratorContext::ObjCResult: in GetDeclSpecTypeForDeclarator()
3371 case DeclaratorContext::RequiresExpr: in GetDeclSpecTypeForDeclarator()
3374 case DeclaratorContext::Prototype: in GetDeclSpecTypeForDeclarator()
3375 case DeclaratorContext::LambdaExprParameter: { in GetDeclSpecTypeForDeclarator()
[all …]
H A DDeclSpec.cpp412 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
H A DSemaDecl.cpp5184 Declarator Dc(DS, DeclaratorContext::Member); in BuildAnonymousStructOrUnion()
5282 Declarator Dc(DS, DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct()
12944 Declarator D(DS, DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier()
13932 Declarator ParamD(DS, DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations()
14879 Declarator D(DS, DeclaratorContext::Block); in ImplicitlyDefineFunction()
H A DSemaDeclObjC.cpp1589 Declarator D(DS, DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaDeclCXX.cpp737 : D.getContext() == DeclaratorContext::Condition in ActOnDecompositionDeclarator()
16425 Declarator TheDeclarator(DS, DeclaratorContext::Member); in ActOnFriendTypeDecl()
H A DSemaCodeComplete.cpp5548 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
H A DSemaExpr.cpp15306 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Parse/
H A DParseDecl.cpp44 DeclaratorContext Context, in ParseTypeName()
1698 Parser::ParseDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd, in ParseDeclaration()
1765 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration()
1806 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator()
1825 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1829 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator()
1855 return Context == DeclaratorContext::Member || in MightBeDeclarator()
1856 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator()
1955 DeclaratorContext Context, in ParseDeclGroup()
2014 if (Context == DeclaratorContext::File) { in ParseDeclGroup()
[all …]
H A 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 …]
H A DParseObjc.cpp661 ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs)); in ParseObjCInterfaceDeclList()
1148 DeclaratorContext Context) { in ParseObjCTypeQualifierList()
1149 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList()
1150 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList()
1156 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter); in ParseObjCTypeQualifierList()
1244 DeclaratorContext context, in ParseObjCTypeName()
1246 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName()
1247 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName()
1249 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName()
1268 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName()
[all …]
H A 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()
837 TemplateInfo.Kind ? DeclaratorContext::AliasTemplate in ParseAliasDeclarationAfterDeclarator()
838 : DeclaratorContext::AliasDecl, in ParseAliasDeclarationAfterDeclarator()
1169 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseBaseTypeSpecifier()
[all …]
H A DParser.cpp906 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
916 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
927 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
936 return ParseDeclaration(DeclaratorContext::File, DeclEnd, attrs); in ParseExternalDeclaration()
951 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()
H A DParseExprCXX.cpp1251 Declarator D(DS, DeclaratorContext::LambdaExpr); in ParseLambdaExpressionAfterIntroducer()
1525 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCXXCasts()
1851 Declarator DeclaratorInfo(DS, DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression()
2022 DeclaratorContext::SelectionInit, DeclEnd, attrs, /*RequireSemi=*/true); in ParseCXXCondition()
2033 DeclGroupPtrTy DG = ParseSimpleDeclaration(DeclaratorContext::ForInit, in ParseCXXCondition()
2055 Declarator DeclaratorInfo(DS, DeclaratorContext::Condition); in ParseCXXCondition()
2699 Declarator D(DS, DeclaratorContext::ConversionId); in ParseUnqualifiedIdOperator()
3057 Declarator DeclaratorInfo(DS, DeclaratorContext::CXXNew); in ParseCXXNewExpression()
3379 ParseParameterDeclarationClause(DeclaratorContext::RequiresExpr, in ParseRequiresExpression()
3907 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCXXAmbiguousParenExpression()
[all …]
H A DParseStmt.cpp228 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, Attrs, in ParseStatementOrDeclarationAfterAttributes()
231 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, Attrs); in ParseStatementOrDeclarationAfterAttributes()
1124 ParseDeclaration(DeclaratorContext::Block, DeclEnd, attrs); in ParseCompoundStatementBody()
1877 DeclaratorContext::ForInit, DeclEnd, attrs, false, in ParseForStatement()
2484 Declarator ExDecl(DS, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
H A DParseExpr.cpp1214 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCastExpression()
1488 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseCastExpression()
2266 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait()
2897 Declarator DeclaratorInfo(DS, DeclaratorContext::TypeName); in ParseParenExpression()
3425 Declarator DeclaratorInfo(DS, DeclaratorContext::BlockLiteral); in ParseBlockId()
3464 Declarator ParamInfo(DS, DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
H A DParseOpenMP.cpp310 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective()
636 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Parse/
H A DParser.h1712 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, DeclaratorContext Ctx,
2300 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context,
2305 ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd,
2309 bool MightBeDeclarator(DeclaratorContext Context);
2310 DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, DeclaratorContext Context,
2334 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context);
2350 DeclaratorContext Context);
2563 DeclaratorContext Context = DeclaratorContext::TypeName,
2991 DeclaratorContext DeclaratorContext,
3017 DeclGroupPtrTy ParseNamespace(DeclaratorContext Context,
[all …]
H A DRAIIObjectsForParser.h204 ParsingDeclarator(Parser &P, const ParsingDeclSpec &DS, DeclaratorContext C) in ParsingDeclarator()