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

Member predicate MetricFunction::getHalsteadN2

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

int getHalsteadN2()