CodeQL library for C/C++
codeql/cpp-all 2.0.2-dev (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()