From: Ted Kremenek Date: Thu, 27 Mar 2008 07:39:04 +0000 (+0000) Subject: Output directory as well as file name. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d00f86d627efc76d38a9309fe135f67b5cecb68;p=clang Output directory as well as file name. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48870 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/HTMLDiagnostics.cpp b/Driver/HTMLDiagnostics.cpp index 6583064d18..65dd17c7f8 100644 --- a/Driver/HTMLDiagnostics.cpp +++ b/Driver/HTMLDiagnostics.cpp @@ -117,7 +117,8 @@ void HTMLDiagnostics::HandlePathDiagnostic(const PathDiagnostic& D) { std::ostringstream os; const FileEntry* Entry = SMgr.getFileEntryForID(FileID); - os << "

" << Entry->getName() << "

\n"; + os << "

" << Entry->getDir()->getName() << "/" + << Entry->getName() << "

\n"; R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str()); }