]> granicus.if.org Git - clang/commitdiff
Disable -Wduplicate-method-match by default. <rdar://problem/10663536>
authorBob Wilson <bob.wilson@apple.com>
Tue, 17 Jan 2012 22:24:32 +0000 (22:24 +0000)
committerBob Wilson <bob.wilson@apple.com>
Tue, 17 Jan 2012 22:24:32 +0000 (22:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148343 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticSemaKinds.td
test/SemaObjC/DoubleMethod.m
test/SemaObjC/check-dup-decl-methods-1.m
test/SemaObjC/class-conforming-protocol-1.m

index 049074d6e5b1125e8b53f2f1bec9e1e37385e41a..a13eedebfa5f1e244c602874cc3b515aea45e5ac 100644 (file)
@@ -499,7 +499,7 @@ def err_setter_type_void : Error<"type of setter must be void">;
 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<
index 6c7e907cb58a9456df3af5dcb16911c25b460d5e..3452dbedb513773c0daf80c5759062a7b6aca00c 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
 
 @interface Subclass
 {
index 667c38114564e6d449622749cdcb32d5f5910015..389566781d8759be2308fc6f8ab6ea61ced0b44d 100644 (file)
@@ -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;
index 5d4e86ddfe4113a99988f819e0f26ed3e7568a45..115ddd231ead0ac93aca7652661bba932584831d 100644 (file)
@@ -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