forked from OSchip/llvm-project
Changed text of warning in my last patch.
Related to radar: <rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions llvm-svn: 84647
This commit is contained in:
parent
462e4ab4ac
commit
b14d70413f
|
@ -202,8 +202,8 @@ def warn_expected_implementation : Warning<
|
|||
def error_property_ivar_decl : Error<
|
||||
"property synthesize requires specification of an ivar">;
|
||||
def warn_semicolon_before_method_nody : Warning<
|
||||
"semicolon at start of method definition is ignored">,
|
||||
InGroup<DiagGroup<"semicolon-at-method-body">>;
|
||||
"semicolon before method body is ignored">,
|
||||
InGroup<DiagGroup<"semicolon-before-method-body">>;
|
||||
|
||||
def err_expected_field_designator : Error<
|
||||
"expected a field designator, such as '.field = 4'">;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
@end
|
||||
|
||||
@implementation Subclass
|
||||
- (NSString *)token; // expected-warning {{semicolon at start of method definition is ignored}}
|
||||
- (NSString *)token; // expected-warning {{semicolon before method body is ignored}}
|
||||
{
|
||||
NSMutableString *result = nil;
|
||||
|
||||
|
|
Loading…
Reference in New Issue