]> granicus.if.org Git - clang/commitdiff
Output "REPORTHEADER" and "REPORTSUMMARYEXTRA" tags for use with scan-view.
authorTed Kremenek <kremenek@apple.com>
Mon, 22 Sep 2008 17:33:32 +0000 (17:33 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 22 Sep 2008 17:33:32 +0000 (17:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56440 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/HTMLDiagnostics.cpp

index c9739c40816b207efbf4e0622b264a12ec82a5f3..5a6987dbcbb5c0e2fe22263a38c820b9cdadfe17 100644 (file)
@@ -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());
   }