This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to use libcpp (GCC c lexer)
Hello Ian,
2012/10/9 Ian Lance Taylor <iant@google.com>:
> [...]
> In current mainline, the main call from gcc to libcpp is in
> gcc/c-family/c-lex.c, which calls cpp_get_token and
> cpp_get_token_with_location. The cpp_reader is set up by the call to
> cpp_create_reader in c_common_init_options in c-family/c-opts.c.
>
> Ian
thank you very much for your answer.
Cheers,
Giovanni