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

Member predicate Field::getInitializationOrder

Gets the zero-based index of the specified field within its enclosing class, counting only fields that can be initialized. This is the order in which the field will be initialized, whether by an initializer list or in a constructor.

int getInitializationOrder()