| /freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
| H A D | DeclSpec.h | 1853 enum class DeclaratorContext { enum 1912 DeclaratorContext Context; 2026 DeclaratorContext C) in Declarator() 2075 DeclaratorContext getContext() const { return Context; } in getContext() 2078 return (Context == DeclaratorContext::Prototype || in isPrototypeContext() 2079 Context == DeclaratorContext::ObjCParameter || in isPrototypeContext() 2080 Context == DeclaratorContext::ObjCResult || in isPrototypeContext() 2081 Context == DeclaratorContext::LambdaExprParameter); in isPrototypeContext() 2138 case DeclaratorContext::File: in mayOmitIdentifier() 2139 case DeclaratorContext::KNRTypeList: in mayOmitIdentifier() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaType.cpp | 64 if (D.getContext() != DeclaratorContext::BlockLiteral || in isOmittedBlockReturnType() 962 declarator.getContext() == DeclaratorContext::LambdaExpr) { in ConvertDeclSpecToType() 966 } else if (declarator.getContext() == DeclaratorContext::LambdaExpr || in ConvertDeclSpecToType() 1449 if (declarator.getContext() == DeclaratorContext::BlockLiteral) in ConvertDeclSpecToType() 3202 case DeclaratorContext::LambdaExpr: in GetDeclSpecTypeForDeclarator() 3206 case DeclaratorContext::ObjCParameter: in GetDeclSpecTypeForDeclarator() 3207 case DeclaratorContext::ObjCResult: in GetDeclSpecTypeForDeclarator() 3210 case DeclaratorContext::RequiresExpr: in GetDeclSpecTypeForDeclarator() 3213 case DeclaratorContext::Prototype: in GetDeclSpecTypeForDeclarator() 3214 case DeclaratorContext::LambdaExprParameter: { in GetDeclSpecTypeForDeclarator() [all …]
|
| H A D | DeclSpec.cpp | 416 assert(getContext() == DeclaratorContext::Member); in isStaticMember()
|
| H A D | SemaDecl.cpp | 5755 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::Member); in BuildAnonymousStructOrUnion() 5843 Declarator Dc(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in BuildMicrosoftCAnonymousStruct() 14521 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::ForInit); in ActOnCXXForRangeIdentifier() 15625 DeclaratorContext::KNRTypeList); in ActOnFinishKNRParamDeclarations() 16825 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::Block); in ImplicitlyDefineFunction()
|
| H A D | SemaDeclObjC.cpp | 1604 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::TypeName); in actOnObjCTypeArgsOrProtocolQualifiers()
|
| H A D | SemaDeclCXX.cpp | 749 else if (D.getContext() == DeclaratorContext::Condition) in ActOnDecompositionDeclarator() 11517 (D.getContext() == clang::DeclaratorContext::Member && in CheckExplicitObjectMemberFunction() 18064 DeclaratorContext::Member); in ActOnFriendTypeDecl()
|
| H A D | SemaCodeComplete.cpp | 6142 if (D.getContext() == DeclaratorContext::Member && !D.isCtorOrDtor() && in CodeCompleteFunctionQualifiers()
|
| H A D | SemaExpr.cpp | 16331 assert(ParamInfo.getContext() == DeclaratorContext::BlockLiteral); in ActOnBlockArguments()
|
| /freebsd/contrib/llvm-project/clang/lib/Parse/ |
| H A D | ParseDecl.cpp | 44 TypeResult Parser::ParseTypeName(SourceRange *Range, DeclaratorContext Context, in ParseTypeName() 1874 Parser::DeclGroupPtrTy Parser::ParseDeclaration(DeclaratorContext Context, in ParseDeclaration() 1932 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration() 1981 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator() 2000 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator() 2004 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator() 2030 return Context == DeclaratorContext::Member || in MightBeDeclarator() 2031 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator() 2125 DeclaratorContext Context, in ParseDeclGroup() 2216 if (Context == DeclaratorContext::File) { in ParseDeclGroup() [all …]
|
| H A D | ParseTemplate.cpp | 33 Parser::ParseDeclarationStartingWithTemplate(DeclaratorContext Context, in ParseDeclarationStartingWithTemplate() 48 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseTemplateDeclarationOrSpecialization() 152 DeclaratorContext Context, SourceLocation &DeclEnd, AccessSpecifier AS) { in ParseTemplateDeclarationOrSpecialization() 159 DeclaratorContext Context, ParsedTemplateInfo &TemplateInfo, in ParseDeclarationAfterTemplate() 175 if (Context == DeclaratorContext::Member) in ParseDeclarationAfterTemplate() 499 DeclaratorContext::TemplateParam); in ParseTemplateParameter() 667 ParseTypeName(/*Range=*/nullptr, DeclaratorContext::TemplateTypeArg) in ParseTypeParameter() 811 DeclaratorContext::TemplateParam); in ParseNonTypeTemplateParameter() 1296 /*Range=*/nullptr, DeclaratorContext::TemplateArg); in ParseTemplateArgument() 1369 DeclaratorContext Context, SourceLocation ExternLoc, in ParseExplicitInstantiation()
|
| H A D | ParseExprCXX.cpp | 1216 Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::LambdaExpr); in ParseLambdaExpressionAfterIntroducer() 1527 DeclaratorContext::TypeName); in ParseCXXCasts() 1790 DeclaratorContext::FunctionalCast); in ParseCXXTypeConstructExpression() 1851 Parser::ParseAliasDeclarationInInitStatement(DeclaratorContext Context, in ParseAliasDeclarationInInitStatement() 1854 assert((Context == DeclaratorContext::ForInit || in ParseAliasDeclarationInInitStatement() 1855 Context == DeclaratorContext::SelectionInit) && in ParseAliasDeclarationInInitStatement() 1962 DeclaratorContext::SelectionInit, attrs); in ParseCXXCondition() 1965 DG = ParseSimpleDeclaration(DeclaratorContext::SelectionInit, DeclEnd, in ParseCXXCondition() 1980 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, FRI); in ParseCXXCondition() 1998 Declarator DeclaratorInfo(DS, attrs, DeclaratorContext::Condition); in ParseCXXCondition() [all …]
|
| H A D | ParseObjc.cpp | 631 allTUVariables.push_back(ParseDeclaration(DeclaratorContext::File, in ParseObjCInterfaceDeclList() 989 DeclaratorContext Context) { in ParseObjCTypeQualifierList() 990 assert(Context == DeclaratorContext::ObjCParameter || in ParseObjCTypeQualifierList() 991 Context == DeclaratorContext::ObjCResult); in ParseObjCTypeQualifierList() 997 getCurScope(), DS, Context == DeclaratorContext::ObjCParameter); in ParseObjCTypeQualifierList() 1098 DeclaratorContext context, in ParseObjCTypeName() 1100 assert(context == DeclaratorContext::ObjCParameter || in ParseObjCTypeName() 1101 context == DeclaratorContext::ObjCResult); in ParseObjCTypeName() 1103 (context == DeclaratorContext::ObjCParameter)); in ParseObjCTypeName() 1122 if (context == DeclaratorContext::ObjCResult) in ParseObjCTypeName() [all …]
|
| H A D | ParseDeclCXX.cpp | 37 Parser::DeclGroupPtrTy Parser::ParseNamespace(DeclaratorContext Context, in ParseNamespace() 315 Decl *Parser::ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context) { in ParseLinkage() 444 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDirectiveOrDeclaration() 483 Decl *Parser::ParseUsingDirective(DeclaratorContext Context, in ParseUsingDirective() 549 bool Parser::ParseUsingDeclarator(DeclaratorContext Context, in ParseUsingDeclarator() 587 if (getLangOpts().CPlusPlus11 && Context == DeclaratorContext::Member && in ParseUsingDeclarator() 620 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, in ParseUsingDeclaration() 624 bool InInitStatement = Context == DeclaratorContext::SelectionInit || in ParseUsingDeclaration() 625 Context == DeclaratorContext::ForInit; in ParseUsingDeclaration() 895 … TemplateInfo.Kind != ParsedTemplateKind::NonTemplate ? DeclaratorContext::AliasTemplate in ParseAliasDeclarationAfterDeclarator() [all …]
|
| H A D | Parser.cpp | 946 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 954 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 966 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 978 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 988 return ParseDeclaration(DeclaratorContext::File, DeclEnd, Attrs, in ParseExternalDeclaration() 1005 return ParseExplicitInstantiation(DeclaratorContext::File, ExternLoc, in ParseExternalDeclaration() 1183 Decl *TheDecl = ParseLinkage(DS, DeclaratorContext::File); in ParseDeclOrFunctionDefInternal() 1187 return ParseDeclGroup(DS, DeclaratorContext::File, Attrs, TemplateInfo); in ParseDeclOrFunctionDefInternal() 1518 DeclaratorContext::KNRTypeList); in ParseKNRParamDeclarations()
|
| H A D | ParseStmt.cpp | 216 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 219 Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, in ParseStatementOrDeclarationAfterAttributes() 261 ParseTemplateDeclarationOrSpecialization(DeclaratorContext::Block, DeclEnd, in ParseStatementOrDeclarationAfterAttributes() 1182 DeclGroupPtrTy Res = ParseDeclaration(DeclaratorContext::Block, DeclEnd, in ParseCompoundStatementBody() 1986 DG = ParseAliasDeclarationInInitStatement(DeclaratorContext::ForInit, in ParseForStatement() 1995 DeclaratorContext::ForInit, DeclEnd, attrs, DeclSpecAttrs, false, in ParseForStatement() 2569 Declarator ExDecl(DS, Attributes, DeclaratorContext::CXXCatch); in ParseCXXCatchBlock()
|
| H A D | ParseExpr.cpp | 983 DeclaratorContext::TypeName); in ParseCastExpression() 1276 DeclaratorContext::TypeName); in ParseCastExpression() 2072 DeclaratorContext::TypeName); in ParseExprAfterUnaryExprOrTypeTrait() 2747 DeclaratorContext::TypeName); in ParseParenExpression() 3059 TypeResult TR = ParseTypeName(nullptr, DeclaratorContext::Association); in ParseGenericSelectionExpression() 3247 DeclaratorContext::BlockLiteral); in ParseBlockId() 3277 DeclaratorContext::BlockLiteral); in ParseBlockLiteralExpression()
|
| H A D | ParseOpenMP.cpp | 196 TypeResult TR = ParseTypeName(&Range, DeclaratorContext::Prototype, AS); in ParseOpenMPDeclareReductionDirective() 525 DeclaratorContext Context = DeclaratorContext::Prototype; in parseOpenMPDeclareMapperVarDecl()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Parse/ |
| H A D | Parser.h | 1398 DeclaratorContext Context = DeclaratorContext::TypeName, 1732 DeclGroupPtrTy ParseDeclaration(DeclaratorContext Context, 1762 ParseSimpleDeclaration(DeclaratorContext Context, SourceLocation &DeclEnd, 1774 bool MightBeDeclarator(DeclaratorContext Context); 1775 DeclGroupPtrTy ParseDeclGroup(ParsingDeclSpec &DS, DeclaratorContext Context, 1836 getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context); 2786 DeclaratorContext DeclaratorContext, ParsedAttributes &attrs, 3170 DeclGroupPtrTy ParseNamespace(DeclaratorContext Context, 3197 Decl *ParseLinkage(ParsingDeclSpec &DS, DeclaratorContext Context); 3222 DeclaratorContext Context, const ParsedTemplateInfo &TemplateInfo, [all …]
|
| H A D | RAIIObjectsForParser.h | 206 DeclaratorContext C) in ParsingDeclarator()
|