Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 libclang 评估表达式和函数宏?
像这样的东西(表达式):
#define SOMETHING 1 | 2 | 4 | 0x10
或者带有函数宏的东西:
#define ADD(a,b) a+b #define THING ADD(10,5)
我可以标记宏或获取其原始文本,但我看不到任何评估它的方法。