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

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()