CodeQL library for C/C++
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()