Output directory as well as file name.

llvm-svn: 48870
This commit is contained in:
Ted Kremenek 2008-03-27 07:39:04 +00:00
parent 8cc4842a76
commit 8d5491f40c
1 changed files with 2 additions and 1 deletions

View File

@ -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());
}