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