Lines Matching refs:SourceMgr

614 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr,  in PrintUnexpected()  argument
623 if (I->first.isInvalid() || !SourceMgr) in PrintUnexpected()
627 if (const FileEntry *File = SourceMgr->getFileEntryForID( in PrintUnexpected()
628 SourceMgr->getFileID(I->first))) in PrintUnexpected()
630 OS << " Line " << SourceMgr->getPresumedLineNumber(I->first); in PrintUnexpected()
643 SourceManager &SourceMgr, in PrintExpected() argument
652 OS << "\n File " << SourceMgr.getFilename(D.DiagnosticLoc); in PrintExpected()
656 OS << " Line " << SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); in PrintExpected()
659 << SourceMgr.getFilename(D.DirectiveLoc) << ':' in PrintExpected()
660 << SourceMgr.getPresumedLineNumber(D.DirectiveLoc) << ')'; in PrintExpected()
688 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckLists() argument
699 unsigned LineNo1 = SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); in CheckLists()
705 unsigned LineNo2 = SourceMgr.getPresumedLineNumber(II->first); in CheckLists()
710 if (!IsFromSameFile(SourceMgr, D.DiagnosticLoc, II->first)) in CheckLists()
728 unsigned num = PrintExpected(Diags, SourceMgr, LeftOnly, Label); in CheckLists()
730 num += PrintUnexpected(Diags, &SourceMgr, Right.begin(), Right.end(), Label); in CheckLists()
738 static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckResults() argument
752 NumProblems += CheckLists(Diags, SourceMgr, "error", ED.Errors, in CheckResults()
757 NumProblems += CheckLists(Diags, SourceMgr, "warning", ED.Warnings, in CheckResults()
762 NumProblems += CheckLists(Diags, SourceMgr, "remark", ED.Remarks, in CheckResults()
767 NumProblems += CheckLists(Diags, SourceMgr, "note", ED.Notes, in CheckResults()