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

Member predicate MetricFile::getHalsteadN1

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

int getHalsteadN1()