Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseHLSL.cpp153 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after)) { in ParseHLSLAnnotations()
192 if (ExpectAndConsume(tok::r_paren, diag::err_expected)) { in ParseHLSLAnnotations()
200 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after)) { in ParseHLSLAnnotations()
280 if (ExpectAndConsume(tok::r_paren, diag::err_expected)) { in ParseHLSLAnnotations()
H A DParsePragma.cpp763 ExpectAndConsume(tok::eod); in HandlePragmaDump()
785 ExpectAndConsume(tok::eod); in HandlePragmaDump()
1226 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
1270 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
1272 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
1282 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSStrictGuardStackCheck()
1292 if (ExpectAndConsume(tok::comma, diag::warn_pragma_expected_punc, in HandlePragmaMSStrictGuardStackCheck()
1318 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSStrictGuardStackCheck()
1322 if (ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSStrictGuardStackCheck()
1333 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSAllocText()
[all …]
H A DParseOpenACC.cpp789 ExpectAndConsume(tok::comma); in ParseOpenACCIntExprList()
816 ExpectAndConsume(tok::comma); in ParseOpenACCDeviceTypeList()
863 ExpectAndConsume(tok::comma); in ParseOpenACCSizeExprList()
926 ExpectAndConsume(tok::comma); in ParseOpenACCGangArgList()
1297 if (ExpectAndConsume(tok::colon)) { in ParseOpenACCWaitArgument()
1336 if (ExpectAndConsume(tok::comma)) { in ParseOpenACCWaitArgument()
1450 ExpectAndConsume(tok::comma); in ParseOpenACCVarList()
H A DParseObjc.cpp165 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
747 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
837 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
867 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1236 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
1844 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@protocol")) in ParseObjCAtProtocolDeclaration()
2079 ExpectAndConsume(tok::semi, diag::err_expected_after, "@compatibility_alias"); in ParseObjCAtAliasDeclaration()
2128 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2186 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2201 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
[all …]
H A DParseDeclCXX.cpp308 if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after_namespace_name)) in ParseNamespaceAlias()
540 if (ExpectAndConsume(tok::semi, in ParseUsingDirective()
710 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
830 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
843 if (ExpectAndConsume(tok::equal)) { in ParseAliasDeclarationAfterDeclarator()
903 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseAliasDeclarationAfterDeclarator()
975 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration()
1929 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2234 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2757 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXClassMemberDeclaration()
[all …]
H A DParseExpr.cpp1822 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
2337 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2374 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2451 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2461 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2487 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2516 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
3036 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
3068 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
H A DParser.cpp126 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser
191 return ExpectAndConsume(tok::semi, DiagID , TokenUsed); in ExpectAndConsumeSemi()
881 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1360 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2643 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
H A DParseDecl.cpp221 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
226 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
250 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
253 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
607 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
1261 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1499 if (ExpectAndConsume(tok::equal, diag::err_expected_after, in ParseExternalSourceSymbolAttribute()
1583 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1692 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
4925 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
[all …]
H A DParseOpenMP.cpp176 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
213 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
231 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
428 ExpectAndConsume(tok::colon); in ParseOpenMPDeclareMapperDirective()
4491 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4606 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4749 ExpectAndConsume(tok::colon, diag::warn_pragma_expected_colon, in ParseOpenMPVarList()
H A DParseStmt.cpp506 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
597 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
625 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
H A DParseExprCXX.cpp1517 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1532 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
3517 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
3720 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinBitCast()
H A DParseCXXInlineMethods.cpp133 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DClangDiagnosticsEmitter.cpp1123 auto ExpectAndConsume = [&](StringRef Prefix) { in parseDiagText() local
1144 ExpectAndConsume("}"); in parseDiagText()
1158 ExpectAndConsume(">"); in parseDiagText()
1178 ExpectAndConsume("{"); in parseDiagText()
1188 ExpectAndConsume("}"); in parseDiagText()
1193 ExpectAndConsume("}"); in parseDiagText()
1214 ExpectAndConsume("}"); in parseDiagText()
1221 ExpectAndConsume("{"); in parseDiagText()
1227 ExpectAndConsume("}"); in parseDiagText()
1244 ExpectAndConsume("{"); in parseDiagText()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Parse/
H A DParser.h799 bool ExpectAndConsume(tok::TokenKind ExpectedTok,
/freebsd/contrib/llvm-project/llvm/include/llvm/Testing/Demangle/
H A DDemangleTestCases.inc4449 {"_ZN5clang6Parser16ExpectAndConsumeENS_3tok9TokenKindEjPKcS2_", "clang::Parser::ExpectAndConsume(c…