I would like to request on the next update of the ARM tools that a check box be added to allow "// style comments". This has been added to the C99 standard. This way, Stict ANSCI C can be checked along with checking "//" style comments.
Thanks, Barry Gordon ================================================== The following statement was copied from david.tribble.com/.../cdiffs.htm
Comments C++ recognizes //... comments as well as /*...*/ comments. C90 only recognizes the /*...*/ form of comments. The //... form usually produces a syntax error in C90, but there are rare cases that may compile erroneously without warning: i = (x//*y*/z++ , w); C99 recognizes both forms of comments. [C99: §5.1.1.2, 6.4.9] [C++98: §2.1, 2.7]
I forgot to indicate the C/C++ tab in the original post. When strict is selected error #29 "expected an expression" is output on a line suct as
int myVar = 10; // C99 style comment
then warnings and errors are output for other lines following. I've seen other compilers that allow '// style comment" with '--strict' enabled by providing an additional checkbox.