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

Member predicate MetricFunction::getHalsteadDifficulty

Gets the Halstead difficulty value of this function. This is proportional to the number of unique operators, and further proportional to the ratio of total operands to unique operands.

float getHalsteadDifficulty()