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