• Home
  • Raw
  • Download

Lines Matching refs:PH

315   for (ParseHelper PH(S); !PH.Done();) {  in ParseDirective()  local
317 if (!PH.Search("expected", true)) in ParseDirective()
319 PH.Advance(); in ParseDirective()
322 if (!PH.Next("-")) in ParseDirective()
324 PH.Advance(); in ParseDirective()
328 if (PH.Next("error")) in ParseDirective()
330 else if (PH.Next("warning")) in ParseDirective()
332 else if (PH.Next("remark")) in ParseDirective()
334 else if (PH.Next("note")) in ParseDirective()
336 else if (PH.Next("no-diagnostics")) { in ParseDirective()
345 PH.Advance(); in ParseDirective()
364 if (PH.Next("-re")) { in ParseDirective()
365 PH.Advance(); in ParseDirective()
373 if (!PH.Next("@")) { in ParseDirective()
376 PH.Advance(); in ParseDirective()
378 bool FoundPlus = PH.Next("+"); in ParseDirective()
379 if (FoundPlus || PH.Next("-")) { in ParseDirective()
381 PH.Advance(); in ParseDirective()
384 if (!Invalid && PH.Next(Line) && (FoundPlus || Line < ExpectedLine)) { in ParseDirective()
389 } else if (PH.Next(Line)) { in ParseDirective()
393 } else if (PP && PH.Search(":")) { in ParseDirective()
395 StringRef Filename(PH.C, PH.P-PH.C); in ParseDirective()
396 PH.Advance(); in ParseDirective()
404 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
412 if (PH.Next(Line) && Line > 0) in ParseDirective()
414 else if (PH.Next("*")) { in ParseDirective()
421 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
425 PH.Advance(); in ParseDirective()
429 PH.SkipWhitespace(); in ParseDirective()
434 if (PH.Next(Min)) { in ParseDirective()
435 PH.Advance(); in ParseDirective()
438 if (PH.Next("+")) { in ParseDirective()
440 PH.Advance(); in ParseDirective()
441 } else if (PH.Next("-")) { in ParseDirective()
442 PH.Advance(); in ParseDirective()
443 if (!PH.Next(Max) || Max < Min) { in ParseDirective()
444 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
448 PH.Advance(); in ParseDirective()
452 } else if (PH.Next("+")) { in ParseDirective()
455 PH.Advance(); in ParseDirective()
459 PH.SkipWhitespace(); in ParseDirective()
462 if (!PH.Next("{{")) { in ParseDirective()
463 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
467 PH.Advance(); in ParseDirective()
468 const char* const ContentBegin = PH.C; // mark content begin in ParseDirective()
471 if (!PH.SearchClosingBrace("{{", "}}")) { in ParseDirective()
472 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
476 const char* const ContentEnd = PH.P; // mark content end in ParseDirective()
477 PH.Advance(); in ParseDirective()
495 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()
509 Diags.Report(Pos.getLocWithOffset(ContentBegin-PH.Begin), in ParseDirective()