[cfe-commits] r47539 - /cfe/trunk/include/clang/Basic/LangOptions.h

Chris Lattner sabre at nondot.org
Mon Feb 25 22:28:53 PST 2008


On Feb 25, 2008, at 5:32 AM, Neil Booth wrote:

> Chris Lattner wrote:-
>
>>>> -  unsigned Digraphs          : 1;  // When added to C?  C99?
>>>> +  unsigned Digraphs          : 1;  // C++ and C99
>>>> unsigned HexFloats         : 1;  // C99 Hexadecimal float
>>>> constants.
>>>> unsigned C99               : 1;  // C99 Support
>>>> unsigned Microsoft         : 1;  // Microsoft extensions.
>>>
>>> Note they were added in C94.
>>
>> Fixed, thanks!  Good thing we distinguish between c89 and c94 :)
>
> GCC does, but it may not be a good idea.  C94 is just an amendment
> to C90.  Do you also intend to support C03 and C06 as well as C99?
>
> Personally I think it's only necessary to support the latest
> versions of C90 and C99, seeing as technically there are just those
> two standards.

Honestly, I added this just because GCC had it: I did not invest much  
thought into it.

Is there harm in supporting both c90 and c94 modes (likewise c++03 vs c 
++98 etc)?  If not, it seems reasonable to shoot for it?

-Chris



More information about the cfe-commits mailing list