reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
374 case tok::l_brace: return P.BraceCount; 375 case tok::l_square: return P.BracketCount; 376 case tok::l_paren: return P.ParenCount; 413 if (!P.Tok.is(Kind)) 416 if (getDepth() < P.getLangOpts().BracketDepth) { 417 LOpen = (P.*Consumer)(); 428 if (P.Tok.is(Close)) { 429 LClose = (P.*Consumer)(); 431 } else if (P.Tok.is(tok::semi) && P.NextToken().is(Close)) { 431 } else if (P.Tok.is(tok::semi) && P.NextToken().is(Close)) { 432 SourceLocation SemiLoc = P.ConsumeToken(); 433 P.Diag(SemiLoc, diag::err_unexpected_semi) 435 LClose = (P.*Consumer)();tools/clang/lib/Parse/Parser.cpp
2449 P.Diag(P.Tok, diag::err_bracket_depth_exceeded) 2449 P.Diag(P.Tok, diag::err_bracket_depth_exceeded) 2450 << P.getLangOpts().BracketDepth; 2451 P.Diag(P.Tok, diag::note_bracket_depth); 2451 P.Diag(P.Tok, diag::note_bracket_depth); 2452 P.cutOffParsing(); 2459 LOpen = P.Tok.getLocation(); 2460 if (P.ExpectAndConsume(Kind, DiagID, Msg)) { 2462 P.SkipUntil(SkipToTok, Parser::StopAtSemi); 2466 if (getDepth() < P.getLangOpts().BracketDepth) 2473 assert(!P.Tok.is(Close) && "Should have consumed closing delimiter"); 2475 if (P.Tok.is(tok::annot_module_end)) 2476 P.Diag(P.Tok, diag::err_missing_before_module_end) << Close; 2476 P.Diag(P.Tok, diag::err_missing_before_module_end) << Close; 2478 P.Diag(P.Tok, diag::err_expected) << Close; 2478 P.Diag(P.Tok, diag::err_expected) << Close; 2479 P.Diag(LOpen, diag::note_matching) << Kind; 2483 if (P.Tok.isNot(tok::r_paren) && P.Tok.isNot(tok::r_brace) && 2483 if (P.Tok.isNot(tok::r_paren) && P.Tok.isNot(tok::r_brace) && 2484 P.Tok.isNot(tok::r_square) && 2485 P.SkipUntil(Close, FinalToken, 2487 P.Tok.is(Close)) 2488 LClose = P.ConsumeAnyToken(); 2493 P.SkipUntil(Close, Parser::StopBeforeMatch);