[cfe-commits] r148343 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/DoubleMethod.m test/SemaObjC/check-dup-decl-methods-1.m test/SemaObjC/class-conforming-protocol-1.m
Bob Wilson
bob.wilson at apple.com
Tue Jan 17 14:24:32 PST 2012
Author: bwilson
Date: Tue Jan 17 16:24:32 2012
New Revision: 148343
URL: http://llvm.org/viewvc/llvm-project?rev=148343&view=rev
Log:
Disable -Wduplicate-method-match by default. <rdar://problem/10663536>
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/DoubleMethod.m
cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m
cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=148343&r1=148342&r2=148343&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue Jan 17 16:24:32 2012
@@ -499,7 +499,7 @@
def err_duplicate_method_decl : Error<"duplicate declaration of method %0">;
def warn_duplicate_method_decl :
Warning<"multiple declarations of method %0 found and ignored">,
- InGroup<MethodDuplicate>;
+ InGroup<MethodDuplicate>, DefaultIgnore;
def err_objc_var_decl_inclass :
Error<"cannot declare variable inside @interface or @protocol">;
def error_missing_method_context : Error<
Modified: cfe/trunk/test/SemaObjC/DoubleMethod.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/DoubleMethod.m?rev=148343&r1=148342&r2=148343&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/DoubleMethod.m (original)
+++ cfe/trunk/test/SemaObjC/DoubleMethod.m Tue Jan 17 16:24:32 2012
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
@interface Subclass
{
Modified: cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m?rev=148343&r1=148342&r2=148343&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m (original)
+++ cfe/trunk/test/SemaObjC/check-dup-decl-methods-1.m Tue Jan 17 16:24:32 2012
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
@interface SUPER
- (int) meth;
Modified: cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m?rev=148343&r1=148342&r2=148343&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m (original)
+++ cfe/trunk/test/SemaObjC/class-conforming-protocol-1.m Tue Jan 17 16:24:32 2012
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
@protocol P1 @end
@protocol P2 @end
More information about the cfe-commits
mailing list