• Home
  • Raw
  • Download

Lines Matching refs:PH

412   for (ParseHelper PH(S); !PH.Done();) {  in ParseDirective()  local
413 if (!PH.Search("#", true)) in ParseDirective()
415 PH.C = PH.P; in ParseDirective()
416 if (!PH.NextMarker()) { in ParseDirective()
417 PH.Next("#"); in ParseDirective()
418 PH.Advance(); in ParseDirective()
421 PH.Advance(); in ParseDirective()
422 Markers.addMarker(PH.Match(), Pos); in ParseDirective()
427 for (ParseHelper PH(S); !PH.Done();) { in ParseDirective() local
432 if (!(Prefixes.size() == 1 ? PH.Search(*Prefixes.begin(), true, true) in ParseDirective()
433 : PH.Search("", true, true))) in ParseDirective()
436 StringRef DToken = PH.Match(); in ParseDirective()
437 PH.Advance(); in ParseDirective()
507 if (!PH.Next("@")) { in ParseDirective()
510 PH.Advance(); in ParseDirective()
512 bool FoundPlus = PH.Next("+"); in ParseDirective()
513 if (FoundPlus || PH.Next("-")) { in ParseDirective()
515 PH.Advance(); in ParseDirective()
518 if (!Invalid && PH.Next(Line) && (FoundPlus || Line < ExpectedLine)) { in ParseDirective()
523 } else if (PH.Next(Line)) { in ParseDirective()
527 } else if (PH.NextMarker()) { in ParseDirective()
528 Marker = PH.Match(); in ParseDirective()
529 } else if (PP && PH.Search(":")) { in ParseDirective()
531 StringRef Filename(PH.C, PH.P-PH.C); in ParseDirective()
532 PH.Advance(); in ParseDirective()
536 if (!PH.Next("*")) { in ParseDirective()
537 Diags.Report(Pos.getLocWithOffset(PH.C - PH.Begin), in ParseDirective()
551 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()
619 PH.Advance(); in ParseDirective()
620 const char* const ContentBegin = PH.C; // mark content begin in ParseDirective()
622 if (!PH.SearchClosingBrace("{{", "}}")) { in ParseDirective()
623 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective()
627 const char* const ContentEnd = PH.P; // mark content end in ParseDirective()
628 PH.Advance(); in ParseDirective()
631 D.ContentBegin = Pos.getLocWithOffset(ContentBegin - PH.Begin); in ParseDirective()