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