[cfe-dev] Macro expansion in the Rewriter?
eli.friedman at gmail.com
Mon Nov 26 16:30:00 PST 2012
On Mon, Nov 26, 2012 at 4:08 PM, Robert Ankeney <rrankene at gmail.com> wrote:
> I have seen requests for help using the Rewriter, and a number of times
> there are problems with macro expansions, especially when performing things
> like instrumentation. Would it make sense (or even be feasible) to add an
> option to the Rewriter to automatically expand a macro when a rewrite
> happens with a SourceLocation that is within the macro? It seems like there
> are times with other refactoring when this could be a useful option.
It sounds like useful functionality. We don't store whether an
identifier is an expanded macro or what it expanded to in any
convenient way, though, so it would be a pain to implement.
More information about the cfe-dev