[cfe-dev] Using Clang to Expand Macros
conn.peter at gmail.com
Thu Nov 22 07:58:04 PST 2012
Ah, I'm sorry, I was thinking a bit too in-depth to give all the details I
should have - I had meant from in C++ (so using
On 22 November 2012 15:55, Konstantin Tokarev <annulen at yandex.ru> wrote:
> 22.11.2012, 19:29, "Peter Conn" <conn.peter at gmail.com>:
> > HeyaHow do I use clang to expand macros?
> > I've been able to find the CXCursor enums to do with it, but I've not
> been able to find anything more.
> > Ideally this would be some sort of operation on a Translation Unit.
> > Thanks,
> > Peter
> You can expand macros in whole translation unit by calling clang -E on
> source file.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev