[cfe-dev] Is is possible to use ParseAST() without adding the clang predefines?

Paolo Bolzoni bolzoni at cs.unipr.it
Fri Feb 20 10:36:49 PST 2009


dear cfe-list,

I use clang as general purpose parser, I'd like to be able to set the
predefines of other compilers instead of clang's ones.

But it seems that ParseAST() unconditionally calls DefineBuiltinMacro().
This adds macros that we could undefine (knowing their names), but it also
adds a typedef that is on the way. Is this avoidable?

Thanks,
pb



More information about the cfe-dev mailing list