[PATCH] D51057: [analyzer][UninitializedObjectChecker] Fixed dereferencing

Umann Kristóf via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 23 09:17:53 PDT 2018


Szelethus updated this revision to Diff 162198.
Szelethus added a comment.

Addressed the inline comments.

- Added a `llvm::SmallSet` to further ensure the termination of the loop.
- Changed `isLocType` to `isDereferencableType`, block pointers are regarded as primitive objects.
- Added new tests


https://reviews.llvm.org/D51057

Files:
  lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObject.h
  lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedObjectChecker.cpp
  lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp
  test/Analysis/cxx-uninitialized-object-ptr-ref.cpp
  test/Analysis/objcpp-uninitialized-object.mm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51057.162198.patch
Type: text/x-patch
Size: 11877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180823/7a44ed85/attachment-0001.bin>


More information about the cfe-commits mailing list