[cfe-commits] r84647 - in /cfe/trunk: include/clang/Basic/DiagnosticParseKinds.td test/SemaObjC/objc-string-constant.m
Fariborz Jahanian
fjahanian at apple.com
Tue Oct 20 10:24:11 PDT 2009
Author: fjahanian
Date: Tue Oct 20 12:24:11 2009
New Revision: 84647
URL: http://llvm.org/viewvc/llvm-project?rev=84647&view=rev
Log:
Changed text of warning in my last patch.
Related to radar:
<rdar://problem/7308503> clang should disallow the trailing semicolon in method definitions
Modified:
cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
cfe/trunk/test/SemaObjC/objc-string-constant.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td?rev=84647&r1=84646&r2=84647&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticParseKinds.td Tue Oct 20 12:24:11 2009
@@ -202,8 +202,8 @@
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'">;
Modified: cfe/trunk/test/SemaObjC/objc-string-constant.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/objc-string-constant.m?rev=84647&r1=84646&r2=84647&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/objc-string-constant.m (original)
+++ cfe/trunk/test/SemaObjC/objc-string-constant.m Tue Oct 20 12:24:11 2009
@@ -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;
More information about the cfe-commits
mailing list