diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-07 18:31:05 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-07 18:31:05 +0000 |
commit | 79ab0fa91354688d06356c4ad27ceee0bae65083 (patch) | |
tree | 3e73d45f18f2024fa270d3c9bffdb92ab294b60b /clang/Driver/HTMLPrint.cpp | |
parent | 768f2c9246eee67732837f4c8976c1df59563f08 (diff) | |
download | bcm5719-llvm-79ab0fa91354688d06356c4ad27ceee0bae65083.tar.gz bcm5719-llvm-79ab0fa91354688d06356c4ad27ceee0bae65083.zip |
In a report-XXXXX.html, make the title include the name of the file with the bug. Patch by Jean-Daniel Dupas!
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2008-July/002166.html
llvm-svn: 53184
Diffstat (limited to 'clang/Driver/HTMLPrint.cpp')
-rw-r--r-- | clang/Driver/HTMLPrint.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/Driver/HTMLPrint.cpp b/clang/Driver/HTMLPrint.cpp index e6e6ab7edf7..b06d52df86e 100644 --- a/clang/Driver/HTMLPrint.cpp +++ b/clang/Driver/HTMLPrint.cpp @@ -17,6 +17,7 @@ #include "clang/Rewrite/HTMLRewrite.h" #include "clang/Basic/Diagnostic.h" #include "clang/Basic/SourceManager.h" +#include "clang/Basic/FileManager.h" #include "clang/AST/ASTContext.h" using namespace clang; @@ -59,8 +60,10 @@ HTMLPrinter::~HTMLPrinter() { // Format the file. unsigned FileID = R.getSourceMgr().getMainFileID(); + const FileEntry* Entry = R.getSourceMgr().getFileEntryForID(FileID); + html::AddLineNumbers(R, FileID); - html::AddHeaderFooterInternalBuiltinCSS(R, FileID); + html::AddHeaderFooterInternalBuiltinCSS(R, FileID, Entry->getName()); // If we have a preprocessor, relex the file and syntax highlight. // We might not have a preprocessor if we come from a deserialized AST file, |