r194763 - [analyzer] Include bug column numbers in HTML output (in a comment).

Jordan Rose jordan_rose at apple.com
Thu Nov 14 18:11:11 PST 2013


Author: jrose
Date: Thu Nov 14 20:11:11 2013
New Revision: 194763

URL: http://llvm.org/viewvc/llvm-project?rev=194763&view=rev
Log:
[analyzer] Include bug column numbers in HTML output (in a comment).

This has no effect on user-visible output, but can be used by post-processing
tools that work with the generated HTML, rather than using CmpRuns.py's
interface to work with plists.

Patch by György Orbán!

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp?rev=194763&r1=194762&r2=194763&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp Thu Nov 14 20:11:11 2013
@@ -221,6 +221,10 @@ void HTMLDiagnostics::ReportDiag(const P
        << 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.





More information about the cfe-commits mailing list