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

Member predicate ClassDerivation::getByteOffset

Gets the byte offset of the base class subobject relative to the start of the derived class object. Only holds for non-virtual bases, since the offset of a virtual base class is not a constant. Does not hold if the derived class is an uninstantiated template. See Class.getVirtualBaseClassByteOffset for offsets of virtual base classes.

int getByteOffset()