[cfe-commits] r56078 - /cfe/trunk/lib/Parse/ParseStmt.cpp

Mike Stump mrs at apple.com
Wed Sep 10 19:42:25 PDT 2008


On Sep 10, 2008, at 5:01 PM, Eli Friedman wrote:
> On Wed, Sep 10, 2008 at 4:46 PM, Argiris Kirtzidis  
> <akyrtzi at gmail.com> wrote:
>> Author: akirtzidis
>> Date: Wed Sep 10 18:46:08 2008
>> New Revision: 56078
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=56078&view=rev
>> Log:
>> -getLang().C99 is true in C++ too, remove the use of the C99orCXX  
>> variable.
>
> ?!?!  This is completely, utterly wrong.  The fact that C99 is defined
> for C++ is just an bug in InitializeLanguageStandard in clang.cpp.
> C++ and C99 are distinct standards, and abusing this is just
> confusing.

I agree 100%.  If the C++ language standard started from the C99 base,  
it would make sense, but it didn't.



More information about the cfe-commits mailing list