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

Member predicate MetricFunction::getHalsteadN1Distinct

Gets the Halstead “n1” metric: this is the total number of distinct operators in this function. Operators (as in the N1 metric) are all operators in expressions as well as most statements.

int getHalsteadN1Distinct()