diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-09-22 17:33:32 +0000 | 
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-09-22 17:33:32 +0000 | 
| commit | b76a3f44ec6ec35133cdc0748ff0e171e23060ee (patch) | |
| tree | f0d4d540de0c91af83364d7050375db1e7c192da /clang/lib/Driver/HTMLDiagnostics.cpp | |
| parent | 47e46ed3da3cc1d3302a4e9a29c3507c0a38cd22 (diff) | |
| download | bcm5719-llvm-b76a3f44ec6ec35133cdc0748ff0e171e23060ee.tar.gz bcm5719-llvm-b76a3f44ec6ec35133cdc0748ff0e171e23060ee.zip | |
Output "REPORTHEADER" and "REPORTSUMMARYEXTRA" tags for use with scan-view.
llvm-svn: 56440
Diffstat (limited to 'clang/lib/Driver/HTMLDiagnostics.cpp')
| -rw-r--r-- | clang/lib/Driver/HTMLDiagnostics.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/clang/lib/Driver/HTMLDiagnostics.cpp b/clang/lib/Driver/HTMLDiagnostics.cpp index c9739c40816..5a6987dbcbb 100644 --- a/clang/lib/Driver/HTMLDiagnostics.cpp +++ b/clang/lib/Driver/HTMLDiagnostics.cpp @@ -223,7 +223,8 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {      std::string s;      llvm::raw_string_ostream os(s); -    os << "<h3>Bug Summary</h3>\n<table class=\"simpletable\">\n" +    os << "<!-- REPORTHEADER -->\n" +       << "<h3>Bug Summary</h3>\n<table class=\"simpletable\">\n"            "<tr><td class=\"rowname\">File:</td><td>"         << html::EscapeText(DirName)         << html::EscapeText(Entry->getName()) @@ -243,7 +244,8 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D) {        os << "<tr><td></td><td>" << html::EscapeText(*I) << "</td></tr>\n";      } -    os << "</table>\n<h3>Annotated Source Code</h3>\n";     +    os << "</table>\n<!-- REPORTSUMMARYEXTRA -->\n" +          "<h3>Annotated Source Code</h3>\n";          R.InsertStrBefore(SourceLocation::getFileLoc(FileID, 0), os.str());    } | 

