CodeQL library for C/C++
Search

Member predicate MetricFunction::getHalsteadN2Distinct

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

int getHalsteadN2Distinct()