Lines Matching refs:DeclaratorContext
44 TypeResult Parser::ParseTypeName(SourceRange *Range, DeclaratorContext Context, in ParseTypeName()
1761 Parser::DeclGroupPtrTy Parser::ParseDeclaration(DeclaratorContext Context, in ParseDeclaration()
1838 DeclaratorContext Context, SourceLocation &DeclEnd, in ParseSimpleDeclaration()
1884 bool Parser::MightBeDeclarator(DeclaratorContext Context) { in MightBeDeclarator()
1903 return Context == DeclaratorContext::Member && getLangOpts().CPlusPlus11 && in MightBeDeclarator()
1907 return Context == DeclaratorContext::Member || getLangOpts().CPlusPlus; in MightBeDeclarator()
1933 return Context == DeclaratorContext::Member || in MightBeDeclarator()
1934 (getLangOpts().CPlusPlus && Context == DeclaratorContext::File); in MightBeDeclarator()
2033 DeclaratorContext Context, in ParseDeclGroup()
2110 if (Context == DeclaratorContext::File) { in ParseDeclGroup()
2189 bool ExpectSemi = Context != DeclaratorContext::ForInit; in ParseDeclGroup()
2241 Context == DeclaratorContext::File in ParseDeclGroup()
2464 if (D.getContext() == DeclaratorContext::ForInit || in ParseDeclarationAfterDeclaratorAndAttributes()
2465 D.getContext() == DeclaratorContext::SelectionInit) in ParseDeclarationAfterDeclaratorAndAttributes()
2878 Parser::getDeclSpecContextFromDeclaratorContext(DeclaratorContext Context) { in getDeclSpecContextFromDeclaratorContext()
2879 if (Context == DeclaratorContext::Member) in getDeclSpecContextFromDeclaratorContext()
2881 if (Context == DeclaratorContext::File) in getDeclSpecContextFromDeclaratorContext()
2883 if (Context == DeclaratorContext::TemplateParam) in getDeclSpecContextFromDeclaratorContext()
2885 if (Context == DeclaratorContext::TemplateArg || in getDeclSpecContextFromDeclaratorContext()
2886 Context == DeclaratorContext::TemplateTypeArg) in getDeclSpecContextFromDeclaratorContext()
2888 if (Context == DeclaratorContext::TrailingReturn || in getDeclSpecContextFromDeclaratorContext()
2889 Context == DeclaratorContext::TrailingReturnVar) in getDeclSpecContextFromDeclaratorContext()
2891 if (Context == DeclaratorContext::AliasDecl || in getDeclSpecContextFromDeclaratorContext()
2892 Context == DeclaratorContext::AliasTemplate) in getDeclSpecContextFromDeclaratorContext()
2894 if (Context == DeclaratorContext::Association) in getDeclSpecContextFromDeclaratorContext()
4732 DeclaratorContext::TypeName); in ParseEnumSpecifier()
5825 DeclaratorContext TheContext) { in isPtrOperatorToken()
5846 return Lang.CPlusPlus11 || (TheContext != DeclaratorContext::ConversionId && in isPtrOperatorToken()
5847 TheContext != DeclaratorContext::CXXNew); in isPtrOperatorToken()
5901 bool EnteringContext = D.getContext() == DeclaratorContext::File || in ParseDeclaratorInternal()
5902 D.getContext() == DeclaratorContext::Member; in ParseDeclaratorInternal()
5976 ((D.getContext() != DeclaratorContext::CXXNew) in ParseDeclaratorInternal()
6128 *this, D.getContext() == DeclaratorContext::Member || in ParseDirectDeclarator()
6129 (D.getContext() == DeclaratorContext::ForInit && in ParseDirectDeclarator()
6134 bool EnteringContext = D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6135 D.getContext() == DeclaratorContext::Member; in ParseDirectDeclarator()
6165 !((D.getContext() == DeclaratorContext::Prototype || in ParseDirectDeclarator()
6166 D.getContext() == DeclaratorContext::LambdaExprParameter || in ParseDirectDeclarator()
6167 D.getContext() == DeclaratorContext::BlockLiteral) && in ParseDirectDeclarator()
6197 AllowConstructorName = (D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6198 D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
6201 AllowConstructorName = (D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
6202 AllowDeductionGuide = (D.getContext() == DeclaratorContext::File || in ParseDirectDeclarator()
6203 D.getContext() == DeclaratorContext::Member); in ParseDirectDeclarator()
6259 else if (D.getContext() == DeclaratorContext::TemplateArg) in ParseDirectDeclarator()
6263 else if (D.getContext() == DeclaratorContext::AliasDecl || in ParseDirectDeclarator()
6264 D.getContext() == DeclaratorContext::AliasTemplate) in ParseDirectDeclarator()
6267 else if ((D.getContext() == DeclaratorContext::TrailingReturn || in ParseDirectDeclarator()
6268 D.getContext() == DeclaratorContext::TrailingReturnVar) && in ParseDirectDeclarator()
6327 if (D.getContext() == DeclaratorContext::Member) { in ParseDirectDeclarator()
6625 (D.getContext() == DeclaratorContext::Member in InitCXXThisScopeForDeclaratorIfRelevant()
6627 : D.getContext() == DeclaratorContext::File && in InitCXXThisScopeForDeclaratorIfRelevant()
6988 DeclaratorContext DeclaratorCtx, ParsedAttributes &FirstArgAttrs, in ParseParameterDeclarationClause()
7040 DeclaratorCtx == DeclaratorContext::RequiresExpr in ParseParameterDeclarationClause()
7041 ? DeclaratorContext::RequiresExpr in ParseParameterDeclarationClause()
7042 : DeclaratorCtx == DeclaratorContext::LambdaExpr in ParseParameterDeclarationClause()
7043 ? DeclaratorContext::LambdaExprParameter in ParseParameterDeclarationClause()
7044 : DeclaratorContext::Prototype); in ParseParameterDeclarationClause()
7124 if (DeclaratorCtx == DeclaratorContext::Member) { in ParseParameterDeclarationClause()