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

Member predicate MetricFunction::getHalsteadN1

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

int getHalsteadN1()