[PATCH/RFA] Add -CC option to cpplib to save comments in macros
Neil Booth
neil@daikokuya.demon.co.uk
Fri Apr 5 11:34:00 GMT 2002
Jason R Thorpe wrote:-
> Back to an old topic...
>
> After the last time I proposed this patch, Neil and I hashed out how
> this should actually work, and the attached patch is the result of
> the discussion we had, updated for the current GCC trunk.
>
> To remind everyone what this is about ... I have added a -CC option
> to the preprocessor that is like -C, but also preserves comments in
> macros when they're expanded and copied into the output file. This
> is necessary in order to support lint(1).
I'd like this to do something sensible for C++ options; I don't think
your patch currently does?
Do
#/**/define foo
and
#define/**/x
and
#define f(x /**/, y)
etc. work, particularly with -pedantic?
b.t.w. I'm away for a week starting tomorrow.
Neil.
More information about the Gcc-patches
mailing list