Home
last modified time | relevance | path

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

/external/clang/lib/Parse/
DParseObjc.cpp159 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
788 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
904 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
931 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1421 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
2076 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@protocol")) in ParseObjCAtProtocolDeclaration()
2322 ExpectAndConsume(tok::semi, diag::err_expected_after, "@compatibility_alias"); in ParseObjCAtAliasDeclaration()
2383 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2448 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2466 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
[all …]
DParseExpr.cpp1536 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
1958 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
1984 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2062 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2072 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2098 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2127 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2522 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
2554 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()
1544 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
1818 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2318 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXClassMemberDeclaration()
2716 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list)) { in ParseCXXClassMemberDeclaration()
3853 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifier()
3857 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()
715 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1135 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2089 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
DParseDecl.cpp132 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
137 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
188 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
191 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
321 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
892 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1092 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1309 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
3736 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
3747 ExpectAndConsume(tok::r_paren); in ParseStructUnionBody()
[all …]
DParseOpenMP.cpp219 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
256 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
274 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
DParseStmt.cpp388 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
481 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
509 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
DParsePragma.cpp718 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
762 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
764 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
DParseExprCXX.cpp1358 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1371 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
3057 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
DParseCXXInlineMethods.cpp96 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/external/clang/include/clang/Parse/
DParser.h758 bool ExpectAndConsume(tok::TokenKind ExpectedTok,