[cfe-commits] r71615 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/attr-deprecated.m test/SemaObjC/method-attributes.m
Fariborz Jahanian
fjahanian at apple.com
Tue May 12 17:47:50 PDT 2009
Author: fjahanian
Date: Tue May 12 19:47:33 2009
New Revision: 71615
URL: http://llvm.org/viewvc/llvm-project?rev=71615&view=rev
Log:
Changed wording of warning when attribute is on
method definition.
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/attr-deprecated.m
cfe/trunk/test/SemaObjC/method-attributes.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=71615&r1=71614&r2=71615&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Tue May 12 19:47:33 2009
@@ -1732,7 +1732,7 @@
def error_protected_ivar_access : Error<"instance variable %0 is protected">;
def warn_maynot_respond : Warning<"%0 may not respond to %1">;
def warn_attribute_method_def : Warning<
- "method attribute may be specified on method declarations only">;
+ "method attribute can only be specified on method declarations">;
}
Modified: cfe/trunk/test/SemaObjC/attr-deprecated.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/attr-deprecated.m?rev=71615&r1=71614&r2=71615&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/attr-deprecated.m (original)
+++ cfe/trunk/test/SemaObjC/attr-deprecated.m Tue May 12 19:47:33 2009
@@ -9,7 +9,7 @@
@implementation A
+ (void)F __attribute__((deprecated))
-{ // expected-warning {{method attribute may be specified on method declarations only}}
+{ // expected-warning {{method attribute can only be specified on method declarations}}
[self F]; // no warning, since the caller is also deprecated.
}
Modified: cfe/trunk/test/SemaObjC/method-attributes.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-attributes.m?rev=71615&r1=71614&r2=71615&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/method-attributes.m (original)
+++ cfe/trunk/test/SemaObjC/method-attributes.m Tue May 12 19:47:33 2009
@@ -19,13 +19,13 @@
@end
@implementation INTF
-- (int) foo: (int)arg1 __attribute__((deprecated)){ // expected-warning {{method attribute may be specified}}
+- (int) foo: (int)arg1 __attribute__((deprecated)){ // expected-warning {{method attribute can only be specified}}
return 10;
}
- (int) foo1: (int)arg1 {
return 10;
}
-- (int) foo2: (int)arg1 __attribute__((deprecated)) { // expected-warning {{method attribute may be specified}}
+- (int) foo2: (int)arg1 __attribute__((deprecated)) { // expected-warning {{method attribute can only be specified}}
return 10;
}
@end
More information about the cfe-commits
mailing list