Is it possible to evaluate expressions and function macros with libclang?
Something like this (expression):
#define SOMETHING 1 | 2 | 4 | 0x10
Or something with a function macro:
#define ADD(a,b) a+b
#define THING ADD(10,5)
I can tokenize the macro or get its raw text but I don't see any way to evaluate it.