forked from OSchip/llvm-project
Disable -Wduplicate-method-match by default. <rdar://problem/10663536>
llvm-svn: 148343
This commit is contained in:
parent
173bce3d2b
commit
206e2302eb
|
@ -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<
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue