This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH/RFA] Add -CC option to cpplib to save comments in macros


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]