| /llvm-project-15.0.7/clang/utils/TableGen/ |
| H A D | ClangDiagnosticsEmitter.cpp | 1061 auto ExpectAndConsume = [&](StringRef Prefix) { in parseDiagText() local 1078 ExpectAndConsume("}"); in parseDiagText() 1099 ExpectAndConsume("}"); in parseDiagText() 1106 ExpectAndConsume("{"); in parseDiagText() 1112 ExpectAndConsume("}"); in parseDiagText() 1130 ExpectAndConsume("{"); in parseDiagText() 1132 ExpectAndConsume("$"); in parseDiagText() 1134 ExpectAndConsume("$"); in parseDiagText() 1136 ExpectAndConsume("|"); in parseDiagText() 1138 ExpectAndConsume("}"); in parseDiagText() [all …]
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParsePragma.cpp | 1124 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg() 1168 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg() 1170 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg() 1181 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSAllocText() 1206 if (ExpectAndConsume(tok::comma, diag::warn_pragma_expected_comma, in HandlePragmaMSAllocText() 1227 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSAllocText() 1229 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSAllocText() 1754 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in HandlePragmaAttribute() 1789 if (ExpectAndConsume(tok::r_paren)) in HandlePragmaAttribute() 1791 if (ExpectAndConsume(tok::r_paren)) in HandlePragmaAttribute() [all …]
|
| H A D | ParseObjc.cpp | 157 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration() 777 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList() 896 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute() 924 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute() 1415 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl() 2363 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize() 2427 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic() 2445 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt() 3196 if (ExpectAndConsume(tok::colon)) { in ParseObjCMessageExpressionBody() 3481 if (ExpectAndConsume(tok::colon)) { in ParseObjCDictionaryLiteral() [all …]
|
| H A D | ParseDeclCXX.cpp | 579 if (ExpectAndConsume(tok::semi, in ParseUsingDirective() 715 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration() 822 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration() 835 if (ExpectAndConsume(tok::equal)) { in ParseAliasDeclarationAfterDeclarator() 895 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseAliasDeclarationAfterDeclarator() 975 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration() 1796 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier() 2073 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier() 4415 if (ExpectAndConsume(tok::comma)) { in ParseCXX11AttributeSpecifierInternal() 4485 if (ExpectAndConsume(tok::r_square)) in ParseCXX11AttributeSpecifierInternal() [all …]
|
| H A D | ParseExpr.cpp | 2027 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix() 2546 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 2572 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 2650 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 2660 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 2686 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 2715 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression() 3260 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression() 3292 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
|
| H A D | ParseDecl.cpp | 174 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() 481 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon() 1127 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute() 1372 if (ExpectAndConsume(tok::equal, diag::err_expected_after, in ParseExternalSourceSymbolAttribute() 1452 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute() 1563 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute() 4504 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody() 4514 ExpectAndConsume(tok::r_paren); in ParseStructUnionBody() [all …]
|
| H A D | Parser.cpp | 110 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser 175 return ExpectAndConsume(tok::semi, DiagID , TokenUsed); in ExpectAndConsumeSemi() 888 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration() 1352 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition() 2649 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
|
| H A D | ParseOpenMP.cpp | 301 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective() 338 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective() 356 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective() 558 ExpectAndConsume(tok::colon); in ParseOpenMPDeclareMapperDirective() 3069 ExpectAndConsume(tok::comma); in ParseOpenMPSizesClause() 4227 ExpectAndConsume(tok::comma); in ParseOpenMPVarList() 4402 ExpectAndConsume(tok::colon, diag::warn_pragma_expected_colon, in ParseOpenMPVarList()
|
| H A D | ParseStmt.cpp | 493 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes() 589 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock() 617 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
|
| H A D | ParseExprCXX.cpp | 1518 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts() 1532 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts() 3827 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait() 4037 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinBitCast()
|
| H A D | ParseCXXInlineMethods.cpp | 93 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
|
| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | Parser.h | 1038 bool ExpectAndConsume(tok::TokenKind ExpectedTok,
|