Lines Matching refs:PH
292 for (ParseHelper PH(S); !PH.Done();) {
294 if (!PH.Search("expected", true))
296 PH.Advance();
299 if (!PH.Next("-"))
301 PH.Advance();
305 if (PH.Next("error"))
307 else if (PH.Next("warning"))
309 else if (PH.Next("note"))
311 else if (PH.Next("no-diagnostics")) {
320 PH.Advance();
339 if (PH.Next("-re")) {
340 PH.Advance();
347 if (!PH.Next("@")) {
350 PH.Advance();
352 bool FoundPlus = PH.Next("+");
353 if (FoundPlus || PH.Next("-")) {
355 PH.Advance();
358 if (!Invalid && PH.Next(Line) && (FoundPlus || Line < ExpectedLine)) {
363 } else if (PH.Next(Line)) {
367 } else if (PP && PH.Search(":")) {
369 StringRef Filename(PH.C, PH.P-PH.C);
370 PH.Advance();
377 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
385 if (PH.Next(Line) && Line > 0)
390 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
394 PH.Advance();
398 PH.SkipWhitespace();
403 if (PH.Next(Min)) {
404 PH.Advance();
407 if (PH.Next("+")) {
409 PH.Advance();
410 } else if (PH.Next("-")) {
411 PH.Advance();
412 if (!PH.Next(Max) || Max < Min) {
413 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
417 PH.Advance();
421 } else if (PH.Next("+")) {
424 PH.Advance();
428 PH.SkipWhitespace();
431 if (!PH.Next("{{")) {
432 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
436 PH.Advance();
437 const char* const ContentBegin = PH.C; // mark content begin
440 if (!PH.Search("}}")) {
441 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin),
445 const char* const ContentEnd = PH.P; // mark content end
446 PH.Advance();
470 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin),