[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)
commita4e557f90812f1d6ffe347ef368c127f077ac5a3
tree56ac9934f571d0840e91f7d233dce7606977cc72
parentc1aaf8ebb731e72ab1d293e49557b98cb2ad2f02
[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

llvm-svn: 330766
clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
clang/test/Analysis/copypaste/plist-diagnostics.cpp