This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Adding // style comment

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]

Parents Reply Children
No data