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

Member predicate MetricFunction::getCyclomaticComplexity

Gets the cyclomatic complexity of this function. This is defined as the number of branching statements (if, while, do, for, and non-fallthrough case) plus the number of branching expressions (?, &&, and ||) plus one.

int getCyclomaticComplexity()