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

Member predicate MetricClass::getHalsteadN1

Gets the Halstead “N1” metric for this class. This is the total number of operators in the class. Operators are taken to be all operators in expressions (+, *, &, ->, =, …) as well as most statements.

int getHalsteadN1()