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

Member predicate Class::getVirtualBaseClassByteOffset

Gets the byte offset of virtual base class subobject base within a most-derived object of class this. The virtual base can be a direct or indirect virtual base of this. Does not hold if this is an uninstantiated template. See ClassDerivation.getByteOffset for offsets of non-virtual base classes.

int getVirtualBaseClassByteOffset(Class base)