Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/
HDParseHLSL.cpp153 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after)) { in ParseHLSLAnnotations()
187 if (ExpectAndConsume(tok::r_paren, diag::err_expected)) { in ParseHLSLAnnotations()
195 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after)) { in ParseHLSLAnnotations()
275 if (ExpectAndConsume(tok::r_paren, diag::err_expected)) { in ParseHLSLAnnotations()
HDParsePragma.cpp775 ExpectAndConsume(tok::eod); in HandlePragmaDump()
797 ExpectAndConsume(tok::eod); in HandlePragmaDump()
1238 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSInitSeg()
1282 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSInitSeg()
1284 ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSInitSeg()
1297 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSStrictGuardStackCheck()
1307 if (ExpectAndConsume(tok::comma, diag::warn_pragma_expected_punc, in HandlePragmaMSStrictGuardStackCheck()
1333 if (ExpectAndConsume(tok::r_paren, diag::warn_pragma_expected_rparen, in HandlePragmaMSStrictGuardStackCheck()
1337 if (ExpectAndConsume(tok::eof, diag::warn_pragma_extra_tokens_at_eol, in HandlePragmaMSStrictGuardStackCheck()
1348 if (ExpectAndConsume(tok::l_paren, diag::warn_pragma_expected_lparen, in HandlePragmaMSAllocText()
[all …]
HDParseOpenACC.cpp691 ExpectAndConsume(tok::comma); in ParseOpenACCIntExprList()
727 ExpectAndConsume(tok::comma); in ParseOpenACCDeviceTypeList()
771 ExpectAndConsume(tok::comma); in ParseOpenACCSizeExprList()
827 ExpectAndConsume(tok::comma); in ParseOpenACCGangArgList()
1181 if (ExpectAndConsume(tok::colon)) { in ParseOpenACCWaitArgument()
1205 if (ExpectAndConsume(tok::comma)) { in ParseOpenACCWaitArgument()
1314 ExpectAndConsume(tok::comma); in ParseOpenACCVarList()
HDParseObjc.cpp181 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@class")) in ParseObjCAtClassDeclaration()
828 ExpectAndConsume(tok::semi, diag::err_expected_semi_decl_list); in ParseObjCInterfaceDeclList()
944 if (ExpectAndConsume(tok::equal, DiagID)) { in ParseObjCPropertyAttribute()
974 if (ExpectAndConsume(tok::colon, in ParseObjCPropertyAttribute()
1466 if (ExpectAndConsume(tok::colon)) in ParseObjCMethodDecl()
2111 if (ExpectAndConsume(tok::semi, diag::err_expected_after, "@protocol")) in ParseObjCAtProtocolDeclaration()
2359 ExpectAndConsume(tok::semi, diag::err_expected_after, "@compatibility_alias"); in ParseObjCAtAliasDeclaration()
2419 ExpectAndConsume(tok::semi, diag::err_expected_after, "@synthesize"); in ParseObjCPropertySynthesize()
2484 ExpectAndConsume(tok::semi, diag::err_expected_after, "@dynamic"); in ParseObjCPropertyDynamic()
2502 ExpectAndConsume(tok::semi, diag::err_expected_after, "@throw"); in ParseObjCThrowStmt()
[all …]
HDParseDeclCXX.cpp347 if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after_namespace_name)) in ParseNamespaceAlias()
600 if (ExpectAndConsume(tok::semi, in ParseUsingDirective()
798 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
914 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseUsingDeclaration()
927 if (ExpectAndConsume(tok::equal)) { in ParseAliasDeclarationAfterDeclarator()
987 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseAliasDeclarationAfterDeclarator()
1070 if (ExpectAndConsume(tok::comma)) { in ParseStaticAssertDeclaration()
2082 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2367 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseClassSpecifier()
2913 if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXClassMemberDeclaration()
[all …]
HDParseExpr.cpp2174 if (ExpectAndConsume(tok::l_paren)) in ParsePostfixExpressionSuffix()
2724 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2761 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2838 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2848 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2874 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
2903 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinPrimaryExpression()
3489 if (ExpectAndConsume(tok::comma)) { in ParseGenericSelectionExpression()
3521 if (ExpectAndConsume(tok::colon)) { in ParseGenericSelectionExpression()
HDParser.cpp118 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() function in Parser
183 return ExpectAndConsume(tok::semi, DiagID , TokenUsed); in ExpectAndConsumeSemi()
925 ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseExternalDeclaration()
1436 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseFunctionDefinition()
2788 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { in expectAndConsume()
HDParseDecl.cpp202 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, in ParseGNUAttributes()
207 if (ExpectAndConsume(tok::l_paren, diag::err_expected_lparen_after, "(")) { in ParseGNUAttributes()
286 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
289 if (ExpectAndConsume(tok::r_paren)) in ParseGNUAttributes()
649 if (!ExpectAndConsume(tok::r_paren)) { in ParseAttributeArgsCommon()
1340 if (ExpectAndConsume(tok::comma)) { in ParseAvailabilityAttribute()
1591 if (ExpectAndConsume(tok::equal, diag::err_expected_after, in ParseExternalSourceSymbolAttribute()
1685 if (ExpectAndConsume(tok::comma)) { in ParseObjCBridgeRelatedAttribute()
1793 if (ExpectAndConsume(tok::comma)) { in ParseTypeTagForDatatypeAttribute()
5159 ExpectAndConsume(tok::l_paren); in ParseStructUnionBody()
[all …]
HDParseOpenMP.cpp305 bool IsCorrect = !ExpectAndConsume(tok::colon); in ParseOpenMPDeclareReductionDirective()
342 if (ExpectAndConsume(tok::comma)) { in ParseOpenMPDeclareReductionDirective()
360 if (ExpectAndConsume(tok::colon)) in ParseOpenMPDeclareReductionDirective()
563 ExpectAndConsume(tok::colon); in ParseOpenMPDeclareMapperDirective()
4439 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4554 ExpectAndConsume(tok::comma); in ParseOpenMPVarList()
4691 ExpectAndConsume(tok::colon, diag::warn_pragma_expected_colon, in ParseOpenMPVarList()
HDParseStmt.cpp538 ExpectAndConsume(tok::semi, diag::err_expected_semi_after_stmt, SemiError); in ParseStatementOrDeclarationAfterAttributes()
644 if (ExpectAndConsume(tok::l_paren)) in ParseSEHExceptBlock()
672 if (ExpectAndConsume(tok::r_paren)) in ParseSEHExceptBlock()
HDParseExprCXX.cpp1669 if (ExpectAndConsume(tok::less, diag::err_expected_less_after, CastName)) in ParseCXXCasts()
1684 if (ExpectAndConsume(tok::greater)) in ParseCXXCasts()
4009 if (ExpectAndConsume(tok::comma)) { in ParseArrayTypeTrait()
4222 if (ExpectAndConsume(tok::comma)) { in ParseBuiltinBitCast()
HDParseCXXInlineMethods.cpp139 } else if (ExpectAndConsume(tok::semi, diag::err_expected_after, in ParseCXXInlineMethodDef()
/freebsd-13-stable/contrib/llvm-project/clang/utils/TableGen/
HDClangDiagnosticsEmitter.cpp1063 auto ExpectAndConsume = [&](StringRef Prefix) { in parseDiagText() local
1080 ExpectAndConsume("}"); in parseDiagText()
1101 ExpectAndConsume("}"); in parseDiagText()
1108 ExpectAndConsume("{"); in parseDiagText()
1114 ExpectAndConsume("}"); in parseDiagText()
1131 ExpectAndConsume("{"); in parseDiagText()
1133 ExpectAndConsume("$"); in parseDiagText()
1135 ExpectAndConsume("$"); in parseDiagText()
1137 ExpectAndConsume("|"); in parseDiagText()
1139 ExpectAndConsume("}"); in parseDiagText()
[all …]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Parse/
HDParser.h1110 bool ExpectAndConsume(tok::TokenKind ExpectedTok,