Disable -Wduplicate-method-match by default. <rdar://problem/10663536>

llvm-svn: 148343
This commit is contained in:
Bob Wilson 2012-01-17 22:24:32 +00:00
parent 173bce3d2b
commit 206e2302eb
4 changed files with 4 additions and 4 deletions

View 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 err_duplicate_method_decl : Error<"duplicate declaration of method %0">;
def warn_duplicate_method_decl : def warn_duplicate_method_decl :
Warning<"multiple declarations of method %0 found and ignored">, Warning<"multiple declarations of method %0 found and ignored">,
InGroup<MethodDuplicate>; InGroup<MethodDuplicate>, DefaultIgnore;
def err_objc_var_decl_inclass : def err_objc_var_decl_inclass :
Error<"cannot declare variable inside @interface or @protocol">; Error<"cannot declare variable inside @interface or @protocol">;
def error_missing_method_context : Error< def error_missing_method_context : Error<

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
@interface Subclass @interface Subclass
{ {

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -Wduplicate-method-match -fsyntax-only -verify %s
@interface SUPER @interface SUPER
- (int) meth; - (int) meth;

View 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 P1 @end
@protocol P2 @end @protocol P2 @end