[analyzer][UninitializedObjectChecker] Added a NotesAsWarnings flag
authorKristof Umann <dkszelethus@gmail.com>
Fri, 29 Jun 2018 11:25:24 +0000 (11:25 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Fri, 29 Jun 2018 11:25:24 +0000 (11:25 +0000)
commit9bd44390b4e35a60789b5e10a64d8f38b908f181
tree3cca4960306e573d984cf153472160c49df3f3ac
parent77c397f465f170df8f39f79fde93b724205b8009
[analyzer][UninitializedObjectChecker] Added a NotesAsWarnings flag

In order to better support consumers of the plist output that don't
parse note entries just yet, a 'NotesAsWarnings' flag was added.
If it's set to true, all notes will be converted to warnings.

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

llvm-svn: 335964
clang/lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp
clang/test/Analysis/cxx-uninitialized-object-notes-as-warnings.cpp [new file with mode: 0644]