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 | f6f593fae2f0531b4bc06891941f7fbba5217618 (patch) | |
tree | 707e58d08cb84b402f3a78830cb86f75942b9b2c /Driver/HTMLPrint.cpp | |
parent | 88a96d6c3fe2b1b9d80b39c21cf7aca4aa9fcf08 (diff) |
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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/HTMLPrint.cpp')
-rw-r--r-- | Driver/HTMLPrint.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Driver/HTMLPrint.cpp b/Driver/HTMLPrint.cpp index e6e6ab7edf..b06d52df86 100644 --- a/Driver/HTMLPrint.cpp +++ b/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, |