![]() |
![]() |
2203 | ![]() |
||||
![]() | |||||||
| 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. QA·C recognises 3 conventional styles for indenting code:
/*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 */
}
![]() | ||
| QA·C Source Code Analyser 8.1.2
© 2013 Programming Research. www.programmingresearch.com | Personality Groups | Glossary | Message Index | Contents |