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

Daniel Dunbar daniel at zuster.org
Sat Feb 21 10:22:31 PST 2009


It isn't inconceivable that we would want clang to be able to mimic
other compilers as a general feature. Have you considered what would
be necessary for DefineBuiltinMacro to directly support compatibility
with whatever other compilers you are interested in?

 - Daniel

On Fri, Feb 20, 2009 at 10:36 AM, Paolo Bolzoni <bolzoni at cs.unipr.it> wrote:
>
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>



More information about the cfe-dev mailing list