Lines Matching defs:PH

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