summaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-11-15 02:11:11 +0000
committerJordan Rose <jordan_rose@apple.com>2013-11-15 02:11:11 +0000
commitd0e5f6a39e4fb30b3a217ae91aecc167a94022e6 (patch)
treef0e08466566fa5314d1888000ab0fa31074f6bbb /lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
parente21432efa94079aa1a62f7d5ff3b47a92d3c8296 (diff)
downloadclang-d0e5f6a39e4fb30b3a217ae91aecc167a94022e6.tar.gz
clang-d0e5f6a39e4fb30b3a217ae91aecc167a94022e6.tar.bz2
clang-d0e5f6a39e4fb30b3a217ae91aecc167a94022e6.tar.xz
[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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
index 6e80432427..365f6ab70d 100644
--- a/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ b/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -221,6 +221,10 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
<< 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.