[cfe-dev] Using Clang to Expand Macros

Konstantin Tokarev annulen at yandex.ru
Thu Nov 22 08:15:28 PST 2012


22.11.2012, 19:58, "Peter Conn" <conn.peter at gmail.com>:
> 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 http://clang.llvm.org/doxygen/group__CINDEX.html )

For C++, I think you should look into clang::Preprocessor [1] and related classes.

[1] http://clang.llvm.org/doxygen/classclang_1_1Preprocessor.html

-- 
Regards,
Konstantin



More information about the cfe-dev mailing list