[cfe-dev] Clang and code transformation
forumer at smartmobili.com
forumer at smartmobili.com
Thu Jan 8 05:23:54 PST 2009
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
More information about the cfe-dev
mailing list