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

Member predicate FunctionDeclarationEntry::getCyclomaticComplexity

Gets the cyclomatic complexity of this function:

The number of branching statements (if, while, do, for, switch, case, catch) plus the number of branching expressions (?, &&, ||) plus one.

int getCyclomaticComplexity()