[cfe-commits] r68169 - /cfe/trunk/lib/Headers/limits.h

Chris Lattner clattner at apple.com
Wed Apr 1 09:19:25 PDT 2009


On Apr 1, 2009, at 9:10 AM, Howard Hinnant wrote:
> I don't feel terribly strongly about this, but I thought I'd mention
> something:
>
> This "extension" has the potential to break conforming code.

Yes, when compiling in GNU mode.  If compiling with extensions  
disabled in the compiler, this will be ifdef'd out.

> Is it practical to ask the author of rdar://6740292 if there are
> impediments to using LLONG_MIN?

My basic approach is (assuming the extension is easy to implement)  
that we should be as GCC compatible as reasonable possible for C  
code.  While rdar://6740292 (someone complaining that the checker  
doesn't work on their code) is just one project that happens to use  
it, I'm sure there are other projects that also use it.

Since Clang is in the stage where we're looking to get adoption, being  
compatible is goodness.  After we get market penetration, we can start  
clamping down on these things.  It would be nice if there were a way  
to deprecate a macro though, I would happily use it in this case.

-Chris



More information about the cfe-commits mailing list