Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DDeclSpec.h1850 enum class DeclaratorContext { enum
1909 DeclaratorContext Context;
2023 DeclaratorContext C) in Declarator()
2072 DeclaratorContext getContext() const { return Context; } in getContext()
2075 return (Context == DeclaratorContext::Prototype || in isPrototypeContext()
2076 Context == DeclaratorContext::ObjCParameter || in isPrototypeContext()
2077 Context == DeclaratorContext::ObjCResult || in isPrototypeContext()
2078 Context == DeclaratorContext::LambdaExprParameter); in isPrototypeContext()
2135 case DeclaratorContext::File: in mayOmitIdentifier()
2136 case DeclaratorContext::KNRTypeList: in mayOmitIdentifier()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaType.cpp65 if (D.getContext() != DeclaratorContext::BlockLiteral || in isOmittedBlockReturnType()
951 declarator.getContext() == DeclaratorContext::LambdaExpr) { in ConvertDeclSpecToType()
955 } else if (declarator.getContext() == DeclaratorContext::LambdaExpr || in ConvertDeclSpecToType()
1434 if (declarator.getContext() == DeclaratorContext::BlockLiteral) in ConvertDeclSpecToType()
3150 case DeclaratorContext::LambdaExpr: in GetDeclSpecTypeForDeclarator()
3154 case DeclaratorContext::ObjCParameter: in GetDeclSpecTypeForDeclarator()
3155 case DeclaratorContext::ObjCResult: in GetDeclSpecTypeForDeclarator()
3158 case DeclaratorContext::RequiresExpr: in GetDeclSpecTypeForDeclarator()
3161 case DeclaratorContext::Prototype: in GetDeclSpecTypeForDeclarator()
3162 case DeclaratorContext::LambdaExprParameter: { in GetDeclSpecTypeForDeclarator()
[all …]
H A DDeclSpec.cpp417 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
H A DSemaDecl.cpp5641 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::Member); in BuildAnonymousStructOrUnion()
5729 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct()
14160 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier()
15189 DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations()
16344 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::Block); in ImplicitlyDefineFunction()
H A DSemaDeclCXX.cpp749 : D.getContext() == DeclaratorContext::Condition in ActOnDecompositionDeclarator()
11276 (D.getContext() == clang::DeclaratorContext::Member && in CheckExplicitObjectMemberFunction()
17539 DeclaratorContext::Member); in ActOnFriendTypeDecl()
H A DSemaDeclObjC.cpp1601 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
H A DSemaCodeComplete.cpp5992 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
H A DSemaExpr.cpp15965 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseDecl.cpp50 TypeResult Parser::ParseTypeName(SourceRange *Range, DeclaratorContext Context, in ParseTypeName()
2009 Parser::DeclGroupPtrTy Parser::ParseDeclaration(DeclaratorContext Context, in ParseDeclaration()
2089 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration()
2140 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator()
2159 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
2163 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator()
2189 return Context == DeclaratorContext::Member || in MightBeDeclarator()
2190 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator()
2290 DeclaratorContext Context, in ParseDeclGroup()
2380 if (Context == DeclaratorContext::File) { in ParseDeclGroup()
[all …]
H A DParseExprCXX.cpp1357 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::LambdaExpr); in ParseLambdaExpressionAfterIntroducer()
1679 DeclaratorContext::TypeName); in ParseCXXCasts()
2015 DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression()
2076 Parser::ParseAliasDeclarationInInitStatement(DeclaratorContext Context, in ParseAliasDeclarationInInitStatement()
2079 assert((Context == DeclaratorContext::ForInit || in ParseAliasDeclarationInInitStatement()
2080 Context == DeclaratorContext::SelectionInit) && in ParseAliasDeclarationInInitStatement()
2212 DeclaratorContext::SelectionInit, attrs); in ParseCXXCondition()
2215 DG = ParseSimpleDeclaration(DeclaratorContext::SelectionInit, DeclEnd, in ParseCXXCondition()
2230 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, FRI); in ParseCXXCondition()
2248 Declarator DeclaratorInfo(DS, attrs, DeclaratorContext::Condition); in ParseCXXCondition()
[all …]
H A DParseTemplate.cpp40 Parser::ParseDeclarationStartingWithTemplate(DeclaratorContext Context, in ParseDeclarationStartingWithTemplate()
79 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseTemplateDeclarationOrSpecialization()
193 DeclaratorContext Context, ParsedTemplateInfo &TemplateInfo, in ParseDeclarationAfterTemplate()
209 if (Context == DeclaratorContext::Member) in ParseDeclarationAfterTemplate()
567 DeclaratorContext::TemplateParam); in ParseTemplateParameter()
754 ParseTypeName(/*Range=*/nullptr, DeclaratorContext::TemplateTypeArg) in ParseTypeParameter()
916 DeclaratorContext::TemplateParam); in ParseNonTypeTemplateParameter()
1492 /*Range=*/nullptr, DeclaratorContext::TemplateArg); in ParseTemplateArgument()
1579 DeclaratorContext Context, SourceLocation ExternLoc, in ParseExplicitInstantiation()
H A DParseObjc.cpp712 allTUVariables.push_back(ParseDeclaration(DeclaratorContext::File, in ParseObjCInterfaceDeclList()
1200 DeclaratorContext Context) { in ParseObjCTypeQualifierList()
1201 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList()
1202 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList()
1208 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter); in ParseObjCTypeQualifierList()
1300 DeclaratorContext context, in ParseObjCTypeName()
1302 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName()
1303 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName()
1305 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName()
1324 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName()
[all …]
H A DParseDeclCXX.cpp64 Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, in ParseNamespace()
361 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) { in ParseLinkage()
494 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDirectiveOrDeclaration()
543 Decl *Parser::ParseUsingDirective(DeclaratorContext Context, in ParseUsingDirective()
614 bool Parser::ParseUsingDeclarator(DeclaratorContext Context, in ParseUsingDeclarator()
652 if (getLangOpts().CPlusPlus11 && Context == DeclaratorContext::Member && in ParseUsingDeclarator()
708 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDeclaration()
712 bool InInitStatement = Context == DeclaratorContext::SelectionInit || in ParseUsingDeclaration()
713 Context == DeclaratorContext::ForInit; in ParseUsingDeclaration()
979 TemplateInfo.Kind ? DeclaratorContext::AliasTemplate in ParseAliasDeclarationAfterDeclarator()
[all …]
H A DParser.cpp990 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
998 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
1010 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
1022 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
1032 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration()
1047 return ParseExplicitInstantiation(DeclaratorContext::File, ExternLoc, in ParseExternalDeclaration()
1245 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal()
1249 return ParseDeclGroup(DS, DeclaratorContext::File, Attrs, TemplateInfo); in ParseDeclOrFunctionDefInternal()
1596 DeclaratorContext::KNRTypeList); in ParseKNRParamDeclarations()
H A DParseStmt.cpp259 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes()
262 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes()
1269 DeclGroupPtrTy Res = ParseDeclaration(DeclaratorContext::Block, DeclEnd, in ParseCompoundStatementBody()
2106 DG = ParseAliasDeclarationInInitStatement(DeclaratorContext::ForInit, in ParseForStatement()
2115 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, in ParseForStatement()
2743 Declarator ExDecl(DS, Attributes, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
H A DParseExpr.cpp1308 DeclaratorContext::TypeName); in ParseCastExpression()
1602 DeclaratorContext::TypeName); in ParseCastExpression()
2455 DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait()
3160 DeclaratorContext::TypeName); in ParseParenExpression()
3512 TypeResult TR = ParseTypeName(nullptr, DeclaratorContext::Association); in ParseGenericSelectionExpression()
3757 DeclaratorContext::BlockLiteral); in ParseBlockId()
3797 DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
H A DParseOpenMP.cpp325 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective()
654 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1820 ParsedType ParseObjCTypeName(ObjCDeclSpec &DS, DeclaratorContext Ctx,
2076 DeclSpec &DS, DeclaratorContext Context = DeclaratorContext::TypeName);
2096 DeclGroupPtrTy ParseAliasDeclarationInInitStatement(DeclaratorContext Context,
2466 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context,
2472 ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd,
2477 bool MightBeDeclarator(DeclaratorContext Context);
2478 DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, DeclaratorContext Context,
2503 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context);
2539 DeclaratorContext Context);
2791 DeclaratorContext Context = DeclaratorContext::TypeName,
[all …]
H A DRAIIObjectsForParser.h206 DeclaratorContext C) in ParsingDeclarator()