Extending pp-trace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Extending pp-trace

David Chisnall via cfe-dev
Hi All!

I started to implementing new features, for example to see what is the actual result of a macro expansion, because the MacroExpands event shows the source code only before the expansion. I guess a new callback method should be added to PPCallbacks to achieve this. The magic happens in Preprocessor::EnterMacro, but I don't really understand what's really going on in this function. Or is it enough to put a new Callback just after calling EnterMacro in Preprocessor::HandleMacroExpandedIdentifier?

Thanks, AndrĂ¡s

cfe-dev mailing list
[hidden email]