diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-27 07:39:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-27 07:39:04 +0000 |
commit | 5d00f86d627efc76d38a9309fe135f67b5cecb68 (patch) | |
tree | 33d6d7a1d492bda5a757866bcfccb2477cce6403 /Driver/HTMLDiagnostics.cpp | |
parent | 2e93981a6262a7dae968ff8af38139d5b0cd1bbc (diff) |
Output directory as well as file name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@48870 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/HTMLDiagnostics.cpp')
-rw-r--r-- | Driver/HTMLDiagnostics.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 << "<h1>" << Entry->getName() << "</h1>\n"; + os << "<h1>" << Entry->getDir()->getName() << "/" + << Entry->getName() << "</h1>\n"; R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str()); } |