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:
Fariborz Jahanian 2009-10-20 17:24:11 +00:00
parent 462e4ab4ac
commit b14d70413f
2 changed files with 3 additions and 3 deletions

View File

@ -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'">;

View File

@ -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;