V021. The 'Foo' function is too complex to analyze entirely. Analysis was stopped from this line until the end of the function.
The V021 warning in the report indicates that the analysis of the function body was interrupted at the specified line because the analysis algorithm's limits were exceeded.
This usually happens when source code contains constructs that take too long to analyze, such as manually written, automatically generated, or macro-expanded deeply nested loops.
To ensure optimal performance and prevent false positives, the analyzer has the following limits:
- the maximum nesting depth for loops is 15 per analyzed function;
- the maximum loop count is 2,500 per analyzed function.
Once these limits are reached, the data flow analysis and diagnostic rules will be disabled, beginning at the specified line and continuing until the end of the function.