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

Member predicate MetricClass::getSpecialisationIndex

Gets the specialization index of this class.

The specialization index metric measures the extent to which derived classes override (replace) the behavior of their base classes. If they override many methods, it is an indication that the original abstraction in the base classes may have been inappropriate. On the whole, derived classes should add behavior to their base classes, but not alter that behavior dramatically.

float getSpecialisationIndex()