forked from OSchip/llvm-project
Put "incomplete implementation" warning under a flag.
llvm-svn: 125535
This commit is contained in:
parent
9cd0b581b8
commit
05e63e0e37
|
@ -343,7 +343,8 @@ def err_conflicting_ivar_name : Error<
|
|||
"conflicting instance variable names: %0 vs %1">;
|
||||
def err_inconsistant_ivar_count : Error<
|
||||
"inconsistent number of instance variables specified">;
|
||||
def warn_incomplete_impl : Warning<"incomplete implementation">;
|
||||
def warn_incomplete_impl : Warning<"incomplete implementation">,
|
||||
InGroup<DiagGroup<"incomplete-implementation">>;
|
||||
def note_undef_method_impl : Note<"method definition for %0 not found">;
|
||||
def note_required_for_protocol_at :
|
||||
Note<"required for direct or indirect protocol %0">;
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
||||
|
||||
@interface I
|
||||
- Meth; // expected-note{{method definition for 'Meth' not found}}
|
||||
@end
|
||||
|
||||
@implementation I // expected-warning{{incomplete implementation}}
|
||||
@end
|
||||
|
||||
@implementation I(CAT)
|
||||
- Meth {return 0;}
|
||||
@end
|
||||
|
||||
#pragma GCC diagnostic ignored "-Wincomplete-implementation"
|
||||
@interface I2
|
||||
- Meth;
|
||||
@end
|
||||
|
||||
@implementation I2
|
||||
@end
|
||||
|
||||
@implementation I2(CAT)
|
||||
- Meth {return 0;}
|
||||
@end
|
||||
|
||||
|
Loading…
Reference in New Issue