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

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