[previous] 0375 [next] [L] Nesting of parenthesized expressions exceeds 63 - program does not conform strictly to ISO:C99.
ISO C99 Conformance limits REFERENCE - ISO:C99-5.2.4.1 Translation Limits

The translation limits specified in the ISO:C Standard define a minimum set of conditions which a compiler must support in order to be described as conforming. In practice, compilers will often tolerate code which exceeds these minimal requirements. However, in order to ensure portability, it is advisable to avoid writing code that assumes a level of compiler capability which may not always be supported.

Message 0375 identifies an expression in which the depth of nesting of parentheses exceeds 63, the minimum requirement of the ISO:C99 Standard. (Message 0410 identifies code which breaches the corresponding ISO:C90 limit, i.e. 32 levels.) Messages 0375 and 0410 do not identify incorrect code but code which is described in the respective standard as not strictly conforming.

For example:


/*PRQA S 2017,3198,3199,3203,3227,3408 ++*/

extern void foo(int a, int b)
{
    int r;

    r = (((((((((((((((((((((((((((((((((                                       /* Message 0410 */
        a == b
        )))))))))))))))))))))))))))))))));

    r = ((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((        /* Message 0410 and 0375 */
        a == b
        ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))));

}

See also:

QA·C Source Code Analyser 8.1.2
© 2013 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index Contents