HomePhabricator

[analyzer] Allow padding checker to traverse simple class hierarchies

Authored by alexshap on Oct 29 2018, 6:20 PM.

Description

[analyzer] Allow padding checker to traverse simple class hierarchies

The existing padding checker skips classes that have any base classes.
This patch allows the checker to traverse very simple cases:
classes that have no fields and have exactly one base class.
This is important mostly in the case of array declarations.

Patch by Max Bernstein!

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D53206

llvm-svn: 345558

Details

Committed
alexshapOct 29 2018, 6:20 PM
Differential Revision
D53206: Allow padding checker to traverse simple class hierarchies
Parents
rG7c180fa9153e: [ubsan-minimal] update comments in CMakeLists.txt
Branches
Unknown
Tags
Unknown