[cfe-dev] diff: builtin macros
Vladimir Kirillov
proger at uaoug.org.ua
Thu Sep 2 07:09:09 PDT 2010
On 21:55 Wed 01 Sep, Eric Christopher wrote:
>
> On Sep 1, 2010, at 9:15 PM, Vladimir Kirillov wrote:
>
> > There's a diff to support builtin macros defined at the preprocessor
> > initialization time (like __clang__, __i386__, etc) to be also treated
> > as builtin (MacroInfo::IsBuiltinMacro), so programs using clang
> > libraries would be able to distinct these macros from others properly.
>
> Uh, why? I mean, I can see the usefulness, but most projects just
> go ahead and do things like prepending the name of the project
> ahead of macros they define.
Well, they do prepend such stuff with console defines (-D, etc).
My diff leaves this intact, only compiler internal macros are marked as
IsBuiltinMacro.
More information about the cfe-dev
mailing list