[cfe-dev] Clang and code transformation
forumer at smartmobili.com
forumer at smartmobili.com
Thu Jan 8 05:54:38 PST 2009
Another question I am trying to compile clang on winXP/cygwin and it seems
you are using
recent GCC flags :
llvm[3]: Compiling gtest.cc for Debug build
cc1plus: error: unrecognized command line option
"-Wno-missing-field-initializers"
cc1plus: error: unrecognized command line option "-Wno-variadic-macros"
Maybe you should check if it exists ...
How can I remove those flags and will it work ?
On Thu, 08 Jan 2009 14:23:54 +0100, <forumer at smartmobili.com> wrote:
> Hi,
>
> I would like to find a tool to add some trace inside some C files from
GCC.
> I tried with some regexp but without success so I would like to know if
> clang
> would allow me to parse C files and add some frpintf() like this :
>
> c-parser.c:
>
>
>
> static void
> c_parser_skip_to_end_of_parameter (c_parser *parser)
> {
>
> fprintf(stderr, "c-parser.c: c_parser_skip_to_end_of_parameter()\n");
//
> ADDED by CLANG
> unsigned nesting_depth = 0;
> ...
>
> }
>
> void
> c_parse_file (void)
> {
> fprintf(stderr, "c-parser.c: c_parse_file()\n"
> ...
> }
> Thanks
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list