Home
last modified time | relevance | path

Searched refs:ExpectAndConsume (Results 1 – 10 of 10) sorted by relevance

/external/clang/lib/Parse/
DParseObjc.cpp154 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
802 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
917 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
944 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1433 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
2052 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@protocol")) in ParseObjCAtProtocolDeclaration()
2298 ExpectAndConsume(tok::semi, diag::err_expected_after, "@compatibility_alias"); in ParseObjCAtAliasDeclaration()
2357 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2394 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2412 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
[all …]
DParseExpr.cpp1488 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
1910 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
1936 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2014 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2024 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2050 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2079 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2474 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
2506 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
DParseDeclCXX.cpp285 if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after_namespace_name)) in ParseNamespaceAlias()
472 if (ExpectAndConsume(tok::semi, in ParseUsingDirective()
642 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
728 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration()
1529 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
1803 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2303 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXClassMemberDeclaration()
2696 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list)) { in ParseCXXClassMemberDeclaration()
3796 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3800 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
DParser.cpp131 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser
196 return ExpectAndConsume(tok::semi, DiagID); in ExpectAndConsumeSemi()
708 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1116 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2067 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
DParseDecl.cpp131 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
136 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
187 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
190 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
320 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
879 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1061 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1278 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
3647 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
3658 ExpectAndConsume(tok::r_paren); in ParseStructUnionBody()
[all …]
DParseStmt.cpp376 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
469 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
497 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
DParsePragma.cpp701 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
745 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
747 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
DParseExprCXX.cpp1290 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1303 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
2981 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
DParseCXXInlineMethods.cpp95 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/external/clang/include/clang/Parse/
DParser.h736 bool ExpectAndConsume(tok::TokenKind ExpectedTok,