]> granicus.if.org Git - clang/commitdiff
Changed text of warning in my last patch.
authorFariborz Jahanian <fjahanian@apple.com>
Tue, 20 Oct 2009 17:24:11 +0000 (17:24 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Tue, 20 Oct 2009 17:24:11 +0000 (17:24 +0000)
Related to radar:
<rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84647 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticParseKinds.td
test/SemaObjC/objc-string-constant.m

index afd413fcab5e0b99ba4688f2e2d2a8f5845989bd..19b0ea3932a5e901462530ced82c56fd01f4140d 100644 (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'">;
index a4d83854c1978c7f407ff74b3ef560dee200ddeb..d27a46a96632a40dfbad67a376f0c1aeb85d65c9 100644 (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;