# V2515. MISRA. Declaration should contain no more than two levels of pointer nesting.

This diagnostic rule is based on the software development guidelines developed by MISRA (Motor Industry Software Reliability Association).

The analyzer issues the warning when it detects a declaration that contains a nested pointer more than two levels deep. Such pointers obscure the code and, therefore, may lead to various mistakes.

Here is an example of code triggering this warning:

    void foo(int **ppArr[])
    {
      ....
    }

This diagnostic is classified as:

MISRA-C-2012-18.5 MISRA-C-2023-18.5 MISRA-CPP-2008-5.0.19