Lines Matching refs:DeclaratorContext
50 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()
2523 bool ExpectSemi = Context != DeclaratorContext::ForInit; in ParseDeclGroup()
2589 Context == DeclaratorContext::File in ParseDeclGroup()
2817 if (D.getContext() == DeclaratorContext::ForInit || in ParseDeclarationAfterDeclaratorAndAttributes()
2818 D.getContext() == DeclaratorContext::SelectionInit) in ParseDeclarationAfterDeclaratorAndAttributes()
3232 Parser::getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context) { in getDeclSpecContextFromDeclaratorContext()
3234 case DeclaratorContext::Member: in getDeclSpecContextFromDeclaratorContext()
3236 case DeclaratorContext::File: in getDeclSpecContextFromDeclaratorContext()
3238 case DeclaratorContext::TemplateParam: in getDeclSpecContextFromDeclaratorContext()
3240 case DeclaratorContext::TemplateArg: in getDeclSpecContextFromDeclaratorContext()
3242 case DeclaratorContext::TemplateTypeArg: in getDeclSpecContextFromDeclaratorContext()
3244 case DeclaratorContext::TrailingReturn: in getDeclSpecContextFromDeclaratorContext()
3245 case DeclaratorContext::TrailingReturnVar: in getDeclSpecContextFromDeclaratorContext()
3247 case DeclaratorContext::AliasDecl: in getDeclSpecContextFromDeclaratorContext()
3248 case DeclaratorContext::AliasTemplate: in getDeclSpecContextFromDeclaratorContext()
3250 case DeclaratorContext::Association: in getDeclSpecContextFromDeclaratorContext()
3252 case DeclaratorContext::TypeName: in getDeclSpecContextFromDeclaratorContext()
3254 case DeclaratorContext::Condition: in getDeclSpecContextFromDeclaratorContext()
3256 case DeclaratorContext::ConversionId: in getDeclSpecContextFromDeclaratorContext()
3258 case DeclaratorContext::CXXNew: in getDeclSpecContextFromDeclaratorContext()
3260 case DeclaratorContext::Prototype: in getDeclSpecContextFromDeclaratorContext()
3261 case DeclaratorContext::ObjCResult: in getDeclSpecContextFromDeclaratorContext()
3262 case DeclaratorContext::ObjCParameter: in getDeclSpecContextFromDeclaratorContext()
3263 case DeclaratorContext::KNRTypeList: in getDeclSpecContextFromDeclaratorContext()
3264 case DeclaratorContext::FunctionalCast: in getDeclSpecContextFromDeclaratorContext()
3265 case DeclaratorContext::Block: in getDeclSpecContextFromDeclaratorContext()
3266 case DeclaratorContext::ForInit: in getDeclSpecContextFromDeclaratorContext()
3267 case DeclaratorContext::SelectionInit: in getDeclSpecContextFromDeclaratorContext()
3268 case DeclaratorContext::CXXCatch: in getDeclSpecContextFromDeclaratorContext()
3269 case DeclaratorContext::ObjCCatch: in getDeclSpecContextFromDeclaratorContext()
3270 case DeclaratorContext::BlockLiteral: in getDeclSpecContextFromDeclaratorContext()
3271 case DeclaratorContext::LambdaExpr: in getDeclSpecContextFromDeclaratorContext()
3272 case DeclaratorContext::LambdaExprParameter: in getDeclSpecContextFromDeclaratorContext()
3273 case DeclaratorContext::RequiresExpr: in getDeclSpecContextFromDeclaratorContext()
5396 DeclaratorContext::TypeName); in ParseEnumSpecifier()
6577 DeclaratorContext TheContext) { in isPtrOperatorToken()
6598 return Lang.CPlusPlus11 || (TheContext != DeclaratorContext::ConversionId && in isPtrOperatorToken()
6599 TheContext != DeclaratorContext::CXXNew); in isPtrOperatorToken()
6653 bool EnteringContext = D.getContext() == DeclaratorContext::File || in ParseDeclaratorInternal()
6654 D.getContext() == DeclaratorContext::Member; in ParseDeclaratorInternal()
6729 ((D.getContext() != DeclaratorContext::CXXNew) in ParseDeclaratorInternal()
6881 *this, D.getContext() == DeclaratorContext::Member || in ParseDirectDeclarator()
6882 (D.getContext() == DeclaratorContext::ForInit && in ParseDirectDeclarator()
6887 bool EnteringContext = D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6888 D.getContext() == DeclaratorContext::Member; in ParseDirectDeclarator()
6929 !((D.getContext() == DeclaratorContext::Prototype || in ParseDirectDeclarator()
6930 D.getContext() == DeclaratorContext::LambdaExprParameter || in ParseDirectDeclarator()
6931 D.getContext() == DeclaratorContext::BlockLiteral) && in ParseDirectDeclarator()
6961 AllowConstructorName = (D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6962 D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
6965 AllowConstructorName = (D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
6966 AllowDeductionGuide = (D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6967 D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
7025 else if (D.getContext() == DeclaratorContext::TemplateArg) in ParseDirectDeclarator()
7029 else if (D.getContext() == DeclaratorContext::AliasDecl || in ParseDirectDeclarator()
7030 D.getContext() == DeclaratorContext::AliasTemplate) in ParseDirectDeclarator()
7033 else if ((D.getContext() == DeclaratorContext::TrailingReturn || in ParseDirectDeclarator()
7034 D.getContext() == DeclaratorContext::TrailingReturnVar) && in ParseDirectDeclarator()
7094 if (D.getContext() == DeclaratorContext::Member) { in ParseDirectDeclarator()
7175 else if (D.getContext() == DeclaratorContext::Member) { in ParseDirectDeclarator()
7441 (D.getContext() == DeclaratorContext::Member in InitCXXThisScopeForDeclaratorIfRelevant()
7443 : D.getContext() == DeclaratorContext::File && in InitCXXThisScopeForDeclaratorIfRelevant()
7598 bool Delayed = D.getContext() == DeclaratorContext::Member && in ParseFunctionDeclarator()
7821 DeclaratorContext DeclaratorCtx, ParsedAttributes &FirstArgAttrs, in ParseParameterDeclarationClause()
7847 if (DeclaratorCtx == DeclaratorContext::Member || in ParseParameterDeclarationClause()
7848 DeclaratorCtx == DeclaratorContext::LambdaExpr || in ParseParameterDeclarationClause()
7849 DeclaratorCtx == DeclaratorContext::RequiresExpr || in ParseParameterDeclarationClause()
7898 if (DeclaratorCtx == DeclaratorContext::RequiresExpr) in ParseParameterDeclarationClause()
7913 DeclaratorCtx == DeclaratorContext::RequiresExpr in ParseParameterDeclarationClause()
7914 ? DeclaratorContext::RequiresExpr in ParseParameterDeclarationClause()
7915 : DeclaratorCtx == DeclaratorContext::LambdaExpr in ParseParameterDeclarationClause()
7916 ? DeclaratorContext::LambdaExprParameter in ParseParameterDeclarationClause()
7917 : DeclaratorContext::Prototype); in ParseParameterDeclarationClause()
8002 if (DeclaratorCtx == DeclaratorContext::Member) { in ParseParameterDeclarationClause()