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

Member predicate MetricClass::getHalsteadN2

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

int getHalsteadN2()