About trees and expanded code by macros
Paulo J. Matos
paulo@matos-sorge.com
Mon May 14 08:50:00 GMT 2012
Hi Alberto,
As far as I understand it you want to know if a statement was expanded
from a preprocessor macro, right?
This isn't possible. The preprocessor is a separate thing altogether and
I doubt any preprocessing information remains for the compiler proper to
deal with.
Cheers,
Paulo Matos
On 14/05/12 08:53, Alberto Lozano Alelu wrote:
> Hello.
>
> I'am developing an statement detector for c++ and I would like to
> detect if an statement is expanded from macro.
>
> Can I detect in ast tree if an statement is expanded code from macro?
>
> Thanks.
>
--
PMatos
More information about the Gcc
mailing list