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

Member predicate Architecture::wastedSpace

Gets the wasted space of type t; that is, the number of bits spent on padding. This is zero for primitive types, and depends on struct fields and their alignment otherwise. Trailing padding is counted.

int wastedSpace(Type t)