diff options
| author | Sylvestre Ledru <sylvestre@debian.org> | 2014-05-23 16:40:46 +0000 |
|---|---|---|
| committer | Sylvestre Ledru <sylvestre@debian.org> | 2014-05-23 16:40:46 +0000 |
| commit | 970d3189e68d815a0ed477dd87754707938ba756 (patch) | |
| tree | 2edd63fe3c74df2858731ce6771c9952e20a70db /clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | |
| parent | 51ec916e20b05c2082dca1c3a5f3986acbfa7b58 (diff) | |
| download | bcm5719-llvm-970d3189e68d815a0ed477dd87754707938ba756.tar.gz bcm5719-llvm-970d3189e68d815a0ed477dd87754707938ba756.zip | |
List the function/method name in the index page of scan-build
llvm-svn: 209526
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp')
| -rw-r--r-- | clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp index 07a793e6ef7..a2997739fe7 100644 --- a/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp @@ -215,6 +215,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 " << path.back()->getLocation().asLocation().getExpansionLineNumber() << " -->\n"; |

