diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2015-02-09 22:52:26 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2015-02-09 22:52:26 +0000 |
commit | c18a11397c3c9ca9a35a2b9fd8cdd93829c6e0f2 (patch) | |
tree | 9eb0b3ad1262a7ead830561d411dea27305cb5cc /clang/lib/StaticAnalyzer | |
parent | b407bb2789e0c1daea1b7d7e896e6a600e408cf0 (diff) | |
download | bcm5719-llvm-c18a11397c3c9ca9a35a2b9fd8cdd93829c6e0f2.tar.gz bcm5719-llvm-c18a11397c3c9ca9a35a2b9fd8cdd93829c6e0f2.zip |
[Static Analyzer] The name of the checker that reports a bug is added
to the plist output. This check_name field does not guaranteed to be the
same as the name of the checker in the future.
Reviewer: Anna Zaks
Differential Revision: http://reviews.llvm.org/D6841
llvm-svn: 228624
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp index 11bd254b780..76026aaed82 100644 --- a/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp +++ b/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp @@ -387,7 +387,9 @@ void PlistDiagnostics::FlushDiagnosticsImpl( EmitString(o, D->getCategory()) << '\n'; o << " <key>type</key>"; EmitString(o, D->getBugType()) << '\n'; - + o << " <key>check_name</key>"; + EmitString(o, D->getCheckName()) << '\n'; + // Output information about the semantic context where // the issue occurred. if (const Decl *DeclWithIssue = D->getDeclWithIssue()) { |