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

Member predicate MetricFile::getHalsteadN2Distinct

Gets the Halstead “n2” metric: this is the number of distinct operands in this file. An operand is either a variable, constant, type name, or function name.

int getHalsteadN2Distinct()