This is an archive of the discontinued LLVM Phabricator instance.

[analyzer][UninitializedObjectChecker] Refactoring p2.: Moving pointer chasing to a separate file
ClosedPublic

Authored by Szelethus on Aug 9 2018, 4:16 AM.

Details

Summary

In this patch, the following classes and functions have been moved to a header file:

  • FieldChainInfo
  • FindUninitializedFields
  • isPrimitiveType

This also meant that they moved from anonymous namespace to clang::ento.

Code related to pointer chasing now relies in its own file.

There's absolutely no functional change in this patch -- its literally just copy pasting,

Diff Detail

Repository
rC Clang

Event Timeline

Szelethus created this revision.Aug 9 2018, 4:16 AM
george.karpenkov requested changes to this revision.Aug 10 2018, 11:45 AM

Overall: great! Thank you for following this direction!

However, to avoid clutter, could we put all the checker files into a separate folder, like MPI-Checker?

This revision now requires changes to proceed.Aug 10 2018, 11:45 AM

Moved the checker files to lib/StaticAnalyzer/Checkers/UninitializedObject/.

This revision is now accepted and ready to land.Aug 13 2018, 11:05 AM
This revision was automatically updated to reflect the committed changes.
lib/StaticAnalyzer/Checkers/UninitializedObject/UninitializedPointee.cpp