CodeQL library for C/C++
codeql/cpp-all 2.0.3-dev (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)