Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp1059 auto ExpectAndConsume = [&](StringRef Prefix) { in parseDiagText() local
1076 ExpectAndConsume("}"); in parseDiagText()
1097 ExpectAndConsume("}"); in parseDiagText()
1104 ExpectAndConsume("{"); in parseDiagText()
1110 ExpectAndConsume("}"); in parseDiagText()
1128 ExpectAndConsume("{"); in parseDiagText()
1130 ExpectAndConsume("$"); in parseDiagText()
1132 ExpectAndConsume("$"); in parseDiagText()
1134 ExpectAndConsume("|"); in parseDiagText()
1136 ExpectAndConsume("}"); in parseDiagText()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Parse/
H A DParseObjc.cpp157 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
775 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
894 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
922 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1409 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
2356 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2420 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2438 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
3187 if (ExpectAndConsume(tok::colon)) { in ParseObjCMessageExpressionBody()
3472 if (ExpectAndConsume(tok::colon)) { in ParseObjCDictionaryLiteral()
[all …]
H A DParseDeclCXX.cpp571 if (ExpectAndConsume(tok::semi, in ParseUsingDirective()
705 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
808 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
821 if (ExpectAndConsume(tok::equal)) { in ParseAliasDeclarationAfterDeclarator()
881 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseAliasDeclarationAfterDeclarator()
958 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration()
1807 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2087 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
4390 if (ExpectAndConsume(tok::comma)) { in ParseCXX11AttributeSpecifierInternal()
4459 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifierInternal()
[all …]
H A DParseExpr.cpp1995 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
2512 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2538 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2616 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2626 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2652 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2681 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
3221 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
3253 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
H A DParseDecl.cpp180 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
240 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
243 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
434 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
1064 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1309 if (ExpectAndConsume(tok::equal, diag::err_expected_after, in ParseExternalSourceSymbolAttribute()
1392 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1508 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
4347 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
4357 ExpectAndConsume(tok::r_paren); in ParseStructUnionBody()
[all …]
H A DParser.cpp110 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser
175 return ExpectAndConsume(tok::semi, DiagID); in ExpectAndConsumeSemi()
858 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1339 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2548 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
H A DParsePragma.cpp1031 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
1075 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
1077 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
1589 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in HandlePragmaAttribute()
1592 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) in HandlePragmaAttribute()
1612 if (ExpectAndConsume(tok::r_paren)) in HandlePragmaAttribute()
1614 if (ExpectAndConsume(tok::r_paren)) in HandlePragmaAttribute()
H A DParseOpenMP.cpp290 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
327 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
345 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
547 ExpectAndConsume(tok::colon); in ParseOpenMPDeclareMapperDirective()
2694 ExpectAndConsume(tok::comma); in ParseOpenMPSizesClause()
3792 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
H A DParseStmt.cpp445 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
541 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
569 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
H A DParseExprCXX.cpp1517 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1530 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
3781 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
3989 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinBitCast()
H A DParseCXXInlineMethods.cpp93 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h1022 bool ExpectAndConsume(tok::TokenKind ExpectedTok,