[cfe-commits] r48870 - /cfe/trunk/Driver/HTMLDiagnostics.cpp
Ted Kremenek
kremenek at apple.com
Thu Mar 27 00:39:04 PDT 2008
Author: kremenek
Date: Thu Mar 27 02:39:04 2008
New Revision: 48870
URL: http://llvm.org/viewvc/llvm-project?rev=48870&view=rev
Log:
Output directory as well as file name.
Modified:
cfe/trunk/Driver/HTMLDiagnostics.cpp
Modified: cfe/trunk/Driver/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/HTMLDiagnostics.cpp?rev=48870&r1=48869&r2=48870&view=diff
==============================================================================
--- cfe/trunk/Driver/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/Driver/HTMLDiagnostics.cpp Thu Mar 27 02:39:04 2008
@@ -117,7 +117,8 @@
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());
}
More information about the cfe-commits
mailing list