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

Member predicate MetricFunction::getNestingDepth

Gets the maximum nesting level of complex statements such as if, while in the function. A nesting depth of 2 would mean that there is, for example, an if statement nested in another if statement.

int getNestingDepth()