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