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