On Wednesday, 2 April 2014 at 21:00:25 UTC, James Buren wrote:
Clang has an API that I find difficult to understand, so I can't really say what may be an issue for it. But I have heard that it doesn't expose any of the macros defined during the preprocessing phase.
libclang has both C and C++ API. Former has only limited exposure of macros, latter is much more capable. I doubt anything you may create with a custom parser can be more simple than libclang, unless not with comparable language support.
