CodeQL library for C/C++
codeql/cpp-all 1.1.0 (changelog, source)

Member predicate PaddedType::dataSize

Gets the data size of this type on architecture arch; that is, the number of bits taken up by data, rather than any kind of padding. Padding of fields that have struct type is considered “data” for the purposes of this definition, since removing it requires reorganizing other parts of the code.

int dataSize(Architecture arch)