[cfe-dev] Rewriter in a macro
JohnH
jan.hoogerbrugge at gmail.com
Fri Jan 25 11:23:38 PST 2013
Hi,
It seems that when I rewrite source code with the Rewriter class where the
source code comes
from an expanded macro that the rewrite does not take place. If I would make
a source-to-source
transformation that rewrites while-loops to for-loops then the following
code:
#define WHILE(x) while(x)
WHILE(cond)
;
while(cond)
;
would become:
#define WHILE(x) while(x)
WHILE(cond)
;
for(;cond;)
;
Is this a known limitation of the Rewriter class?
Regards,
John.
--
View this message in context: http://clang-developers.42468.n3.nabble.com/Rewriter-in-a-macro-tp4030056.html
Sent from the Clang Developers mailing list archive at Nabble.com.
More information about the cfe-dev
mailing list