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