[previous] 3108 [next] Nested comments are not recognized in the ISO standard.
Preprocessing REFERENCE - ISO:C90-6.1.9 Comments (footnote 26)

The character sequence '/' followed by '*' has been encountered within a comment. This could be an attempt to nest comment blocks. Nested comments are not supported in ISO:C and QA·C will not parse them - although some compilers will.

Message 3108 is generated whenever a character sequence like this is encountered within a comment. It is perfectly legitimate syntax but syntax error messages will undoubtedly follow if nested comments are really being used.

For example:


/*PRQA S 2017,3205,3408 ++*/

extern void foo(void)
{
    int j = 1;

    ++j;            /* Message 3108 - suspected nested comment ->  **\/**  */

}

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