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

Member predicate MetricClass::getHalsteadN2Distinct

Gets the Halstead “n2” metric: this is the number of distinct operands in this class. An operand is either a variable, constant, type name, or function name.

int getHalsteadN2Distinct()