]> granicus.if.org Git - clang/commit
[analyzer] Add support for the note diagnostic pieces to plist output format.
authorArtem Dergachev <artem.dergachev@gmail.com>
Tue, 24 Apr 2018 20:45:48 +0000 (20:45 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Tue, 24 Apr 2018 20:45:48 +0000 (20:45 +0000)
commit4a568e27a22a258aae7a6c79b24725b067a3e5cb
tree283f1cea718f96091e3fdc70801039b30de1d0ba
parent57e1e9a1599bf686072123b7268310cfffd1b62e
[analyzer] Add support for the note diagnostic pieces to plist output format.

Note diagnostic pieces are an additional way of highlighting code sections to
the user. They aren't part of the normal path diagnostic sequence. They can
also be attached to path-insensitive reports.

Notes are already supported by the text output and scan-build.

Expanding our machine-readable plist output format to be able to represent notes
opens up the possibility for various analyzer GUIs to pick them up.

Patch by Umann Kristóf!

Differential Revision: https://reviews.llvm.org/D45407

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@330766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
test/Analysis/copypaste/plist-diagnostics.cpp