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