Lines Matching refs:SourceMgr

574 static unsigned PrintUnexpected(DiagnosticsEngine &Diags, SourceManager *SourceMgr,  in PrintUnexpected()  argument
583 if (I->first.isInvalid() || !SourceMgr) in PrintUnexpected()
587 if (const FileEntry *File = SourceMgr->getFileEntryForID( in PrintUnexpected()
588 SourceMgr->getFileID(I->first))) in PrintUnexpected()
590 OS << " Line " << SourceMgr->getPresumedLineNumber(I->first); in PrintUnexpected()
602 static unsigned PrintExpected(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in PrintExpected() argument
611 OS << "\n File " << SourceMgr.getFilename(D.DiagnosticLoc) in PrintExpected()
612 << " Line " << SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); in PrintExpected()
615 << SourceMgr.getFilename(D.DirectiveLoc) << ':' in PrintExpected()
616 << SourceMgr.getPresumedLineNumber(D.DirectiveLoc) << ')'; in PrintExpected()
644 static unsigned CheckLists(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckLists() argument
654 unsigned LineNo1 = SourceMgr.getPresumedLineNumber(D.DiagnosticLoc); in CheckLists()
659 unsigned LineNo2 = SourceMgr.getPresumedLineNumber(II->first); in CheckLists()
663 if (!IsFromSameFile(SourceMgr, D.DiagnosticLoc, II->first)) in CheckLists()
681 unsigned num = PrintExpected(Diags, SourceMgr, LeftOnly, Label); in CheckLists()
682 num += PrintUnexpected(Diags, &SourceMgr, Right.begin(), Right.end(), Label); in CheckLists()
690 static unsigned CheckResults(DiagnosticsEngine &Diags, SourceManager &SourceMgr, in CheckResults() argument
701 NumProblems += CheckLists(Diags, SourceMgr, "error", ED.Errors, in CheckResults()
705 NumProblems += CheckLists(Diags, SourceMgr, "warning", ED.Warnings, in CheckResults()
709 NumProblems += CheckLists(Diags, SourceMgr, "note", ED.Notes, in CheckResults()