summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2014-06-14 08:49:40 +0000
committerSylvestre Ledru <sylvestre@debian.org>2014-06-14 08:49:40 +0000
commitac5a08a56abba29351c3b1675d7142172f6c0d71 (patch)
tree3d9ffb5de0cda9c307d0d5caef0bf18c26cfdb3d /clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
parent9882e1a52cfcdf5c829612468f1697c94cd1286e (diff)
downloadbcm5719-llvm-ac5a08a56abba29351c3b1675d7142172f6c0d71.tar.gz
bcm5719-llvm-ac5a08a56abba29351c3b1675d7142172f6c0d71.zip
List the function/method name in the index page of scan-build
llvm-svn: 210971
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
index c176ab3f557..2a455464822 100644
--- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
+++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp
@@ -240,6 +240,10 @@ void HTMLDiagnostics::ReportDiag(const PathDiagnostic& D,
os << "\n<!-- BUGFILE " << DirName << Entry->getName() << " -->\n";
+ os << "\n<!-- FILENAME " << llvm::sys::path::filename(Entry->getName()) << " -->\n";
+
+ os << "\n<!-- FUNCTIONNAME " << declName << " -->\n";
+
os << "\n<!-- BUGLINE "
<< LineNumber
<< " -->\n";
OpenPOWER on IntegriCloud