[analyzer][UninitializedObjectChecker] Refactored checker options
authorKristof Umann <dkszelethus@gmail.com>
Fri, 14 Sep 2018 09:39:26 +0000 (09:39 +0000)
committerKristof Umann <dkszelethus@gmail.com>
Fri, 14 Sep 2018 09:39:26 +0000 (09:39 +0000)
commit6cec6c467ce93fafcf002a781326bfeaa57c6f49
tree4e29d5cb291bc17fb76c5528c3026542fc1ee0d6
parent55dbac9f078e655aff62dc692e05e60485fa1850
[analyzer][UninitializedObjectChecker] Refactored checker options

Since I plan to add a number of new flags, it made sense to encapsulate
them in a new struct, in order not to pollute FindUninitializedFields's
constructor with new boolean options with super long names.

This revision practically reverts D50508, since FindUninitializedFields
now accesses the pedantic flag anyways.

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

llvm-svn: 342219
clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h
clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
clang/lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp