[previous] 2203 [next] This closing brace is not aligned appropriately with the matching opening brace.
Bracing and Indentation

The closing brace of this compound statement is not in a position consistent with the opening brace and the selected bracing style.

QAC recognises 3 conventional styles for indenting code: The required style can be selected using the -style option but by default this is "exdented".

For example:


/*PRQA S 2017,3120,3227,3408 ++*/

extern void foo(int x)
{
    if (x > 2 )
    {

    }

    if (x > 4 )
     {                                  /* Message 2209 */

     }

    if (x > 6 )
     {                                  /* Message 2209 */

     }

    if (x > 8)
    {

     }                                  /* Message 2203 */

}


No MISRA C:2012 Rules applicable to message 2203


QA·C Source Code Analyser 8.1
MISRA C:2012 Compliance Module 1.0
© 2012 Programming Research.
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents