[cfe-commits] r70784 - in /cfe/trunk: lib/Sema/Sema.h lib/Sema/SemaDecl.cpp lib/Sema/SemaTemplate.cpp test/SemaCXX/struct-class-redecl.cpp test/SemaCXX/typedef-redecl.cpp test/SemaTemplate/class-template-decl.cpp
Chris Lattner
clattner at apple.com
Sun May 3 12:13:17 PDT 2009
On May 3, 2009, at 12:10 PM, Sebastian Redl wrote:
>
> On Sun, 03 May 2009 17:18:57 -0000, Douglas Gregor <dgregor at apple.com>
> wrote:
>> Author: dgregor
>> Date: Sun May 3 12:18:57 2009
>> New Revision: 70784
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=70784&view=rev
>> Log:
>> One can use "class" and "struct" interchangeably to refer to a class
>> in C++. Fixes <rdar://problem/6815995>.
>>
>
> We might want a default-off warning that warns if the wrong tag is
> used for
> the redeclaration. This could help Clang users find MSVC
> interoperability
> issues, since MSVC warns about this by default.
This would be nice, in LLVM we prefer to have consistent tags as part
of the coding standards. It would even make sense to default this
warning to on in -fms-compat mode.
-Chris
More information about the cfe-commits
mailing list