Home
last modified time | relevance | path

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

/openbsd/src/gnu/llvm/clang/utils/TableGen/
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 …]
/openbsd/src/gnu/llvm/clang/lib/Parse/
DParseHLSL.cpp148 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after)) { in ParseHLSLSemantics()
182 if (ExpectAndConsume(tok::r_paren, diag::err_expected)) { in ParseHLSLSemantics()
DParsePragma.cpp1131 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
1175 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
1177 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
1190 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSStrictGuardStackCheck()
1200 if (ExpectAndConsume(tok::comma, diag::warn_pragma_expected_punc, in HandlePragmaMSStrictGuardStackCheck()
1226 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSStrictGuardStackCheck()
1230 if (ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSStrictGuardStackCheck()
1241 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSAllocText()
1266 if (ExpectAndConsume(tok::comma, diag::warn_pragma_expected_comma, in HandlePragmaMSAllocText()
1287 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSAllocText()
[all …]
DParseObjc.cpp174 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
809 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
928 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
956 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1447 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
2106 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@protocol")) in ParseObjCAtProtocolDeclaration()
2350 ExpectAndConsume(tok::semi, diag::err_expected_after, "@compatibility_alias"); in ParseObjCAtAliasDeclaration()
2409 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2473 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2491 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
[all …]
DParseDeclCXX.cpp336 if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after_namespace_name)) in ParseNamespaceAlias()
588 if (ExpectAndConsume(tok::semi, in ParseUsingDirective()
752 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
859 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
872 if (ExpectAndConsume(tok::equal)) { in ParseAliasDeclarationAfterDeclarator()
932 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseAliasDeclarationAfterDeclarator()
1013 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration()
1885 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2162 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2704 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXClassMemberDeclaration()
[all …]
DParseExpr.cpp2050 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
2575 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2612 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2689 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2699 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2725 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2754 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
3297 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
3329 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
DParseDecl.cpp174 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
179 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
239 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
242 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
479 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
1136 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1381 if (ExpectAndConsume(tok::equal, diag::err_expected_after, in ParseExternalSourceSymbolAttribute()
1461 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1572 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
4593 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
[all …]
DParser.cpp110 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser
175 return ExpectAndConsume(tok::semi, DiagID , TokenUsed); in ExpectAndConsumeSemi()
900 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1385 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2700 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
DParseOpenMP.cpp302 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
339 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
357 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
555 ExpectAndConsume(tok::colon); in ParseOpenMPDeclareMapperDirective()
3086 ExpectAndConsume(tok::comma); in ParseOpenMPSizesClause()
4377 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4440 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4575 ExpectAndConsume(tok::colon, diag::warn_pragma_expected_colon, in ParseOpenMPVarList()
DParseStmt.cpp508 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
604 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
632 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
DParseExprCXX.cpp1571 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1586 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
3873 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
4083 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinBitCast()
DParseCXXInlineMethods.cpp93 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/openbsd/src/gnu/llvm/clang/include/clang/Parse/
DParser.h1056 bool ExpectAndConsume(tok::TokenKind ExpectedTok,