[PATCH] Extend HTMLDiagnostics to write bug column number into the report files

György Orbán o.gyorgy at gmail.com
Wed Nov 6 03:47:51 PST 2013


o.gyorgy added you to the CC list for the revision "Extend HTMLDiagnostics to write bug column number into the report files".

Extend the generated html bug reports with the bug column number. Postprocessing of the generated report files would be easier by other tools. (getting the bug column number from the report file) 

http://llvm-reviews.chandlerc.com/D2111

Files:
  lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp

Index: lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
===================================================================
--- lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -228,6 +228,10 @@
        << path.back()->getLocation().asLocation().getExpansionLineNumber()
        << " -->\n";
 
+    os << "\n<!-- BUGCOLUMN "
+      << path.back()->getLocation().asLocation().getExpansionColumnNumber()
+      << " -->\n";
+
     os << "\n<!-- BUGPATHLENGTH " << path.size() << " -->\n";
 
     // Mark the end of the tags.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2111.1.patch
Type: text/x-patch
Size: 564 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131106/deb6457f/attachment.bin>


More information about the cfe-commits mailing list