[PATCH/RFA] Add -CC option to cpplib to save comments in macros
Jason R Thorpe
thorpej@wasabisystems.com
Thu Apr 25 11:53:00 GMT 2002
On Thu, Apr 25, 2002 at 02:55:48PM -0300, Alexandre Oliva wrote:
> How about something like:
>
> a = // gotcha */ b; /*
> foo ();
>
> it surely means something other than
>
> a = /* gotcha */ b; /**/
> foo ();
Note the C++ -> C comment conversion is only done if the comment appears
within a macro, and only with -CC. I'm not sure it's really worth worrying
about too much, though maybe a warning about various C++ comment pitfalls
should be added to the -CC documentation.
I'll try to cook up a patch for the docs soon (quite swamped with about
5 "top priority!!!" things right now).
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>
More information about the Gcc-patches
mailing list