Lines Matching refs:PH

416   for (ParseHelper PH(S); !PH.Done();) {  in ParseDirective()  local
417 if (!PH.Search("#", true)) in ParseDirective()
419 PH.C = PH.P; in ParseDirective()
420 if (!PH.NextMarker()) { in ParseDirective()
421 PH.Next("#"); in ParseDirective()
422 PH.Advance(); in ParseDirective()
425 PH.Advance(); in ParseDirective()
426 Markers.addMarker(PH.Match(), Pos); in ParseDirective()
431 for (ParseHelper PH(S); !PH.Done();) { in ParseDirective() local
436 if (!(Prefixes.size() == 1 ? PH.Search(*Prefixes.begin(), true, true) in ParseDirective()
437 : PH.Search("", true, true))) in ParseDirective()
440 StringRef DToken = PH.Match(); in ParseDirective()
441 PH.Advance(); in ParseDirective()
509 if (!PH.Next("@")) { in ParseDirective()
512 PH.Advance(); in ParseDirective()
514 bool FoundPlus = PH.Next("+"); in ParseDirective()
515 if (FoundPlus || PH.Next("-")) { in ParseDirective()
517 PH.Advance(); in ParseDirective()
520 if (!Invalid && PH.Next(Line) && (FoundPlus || Line < ExpectedLine)) { in ParseDirective()
525 } else if (PH.Next(Line)) { in ParseDirective()
529 } else if (PH.NextMarker()) { in ParseDirective()
530 Marker = PH.Match(); in ParseDirective()
531 } else if (PP && PH.Search(":")) { in ParseDirective()
533 StringRef Filename(PH.C, PH.P-PH.C); in ParseDirective()
534 PH.Advance(); in ParseDirective()
538 if (!PH.Next("*")) { in ParseDirective()
539 Diags.Report(Pos.getLocWithOffset(PH.C - PH.Begin), in ParseDirective()
552 Diags.Report(Pos.getLocWithOffset(PH.C - PH.Begin), in ParseDirective()
562 if (PH.Next(Line) && Line > 0) in ParseDirective()
564 else if (PH.Next("*")) { in ParseDirective()
569 } else if (PH.Next("*")) { in ParseDirective()
575 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
579 PH.Advance(); in ParseDirective()
583 PH.SkipWhitespace(); in ParseDirective()
586 if (PH.Next(D.Min)) { in ParseDirective()
587 PH.Advance(); in ParseDirective()
590 if (PH.Next("+")) { in ParseDirective()
592 PH.Advance(); in ParseDirective()
593 } else if (PH.Next("-")) { in ParseDirective()
594 PH.Advance(); in ParseDirective()
595 if (!PH.Next(D.Max) || D.Max < D.Min) { in ParseDirective()
596 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
600 PH.Advance(); in ParseDirective()
604 } else if (PH.Next("+")) { in ParseDirective()
607 PH.Advance(); in ParseDirective()
611 PH.SkipWhitespace(); in ParseDirective()
614 if (!PH.Next("{{")) { in ParseDirective()
615 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
620 const char *const DelimBegin = PH.C; in ParseDirective()
621 PH.Advance(); in ParseDirective()
623 for (; !D.RegexKind && PH.Next("{"); PH.Advance()) in ParseDirective()
625 const char* const ContentBegin = PH.C; // mark content begin in ParseDirective()
628 if (!PH.SearchClosingBrace(OpenBrace, CloseBrace)) { in ParseDirective()
629 Diags.Report(Pos.getLocWithOffset(PH.C - PH.Begin), in ParseDirective()
634 const char* const ContentEnd = PH.P; // mark content end in ParseDirective()
635 PH.Advance(); in ParseDirective()
638 D.ContentBegin = Pos.getLocWithOffset(ContentBegin - PH.Begin); in ParseDirective()