[analyzer][UninitializedObjectChecker] Refactored checker options
ClosedPublic

Authored by Szelethus on Sep 5 2018, 4:33 AM.

Details

Summary

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 FindUninitializedFieldss constructor with new boolean options with super long names.

This revision practically reverts D50508, since FindUninitializedFields now accesses the pedantic flag anyways. I guess that revision was a poor design choice :^).

Diff Detail

Repository
rC Clang
Szelethus created this revision.Sep 5 2018, 4:33 AM
NoQ accepted this revision.Sep 13 2018, 7:09 PM
NoQ added inline comments.
lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h
61–63

... = false;, just to initialize fields in the constructor :]

This revision is now accepted and ready to land.Sep 13 2018, 7:09 PM
This revision was automatically updated to reflect the committed changes.