[cfe-commits] r133625 - in /cfe/trunk: include/clang/Basic/DiagnosticSemaKinds.td test/SemaObjC/arc.m
Argyrios Kyrtzidis
akyrtzi at gmail.com
Wed Jun 22 11:03:53 PDT 2011
Author: akirtzidis
Date: Wed Jun 22 13:03:53 2011
New Revision: 133625
URL: http://llvm.org/viewvc/llvm-project?rev=133625&view=rev
Log:
Change "cannot assign retained object.." warning to "assigning retained object.."
Modified:
cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
cfe/trunk/test/SemaObjC/arc.m
Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td?rev=133625&r1=133624&r2=133625&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Wed Jun 22 13:03:53 2011
@@ -2597,7 +2597,7 @@
"to make it ABI-compatible">, InGroup<AutomaticReferenceCountingABI>,
DefaultIgnore;
def warn_arc_retained_assign : Warning<
- "cannot assign retained object to %select{weak|unsafe_unretained}0 variable">;
+ "assigning retained object to %select{weak|unsafe_unretained}0 variable">;
def warn_arc_trivial_member_function_with_object_member : Warning<
"%0 cannot be shared between ARC and non-ARC "
"code; add a non-trivial %select{copy constructor|copy assignment operator|"
Modified: cfe/trunk/test/SemaObjC/arc.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/arc.m?rev=133625&r1=133624&r2=133625&view=diff
==============================================================================
--- cfe/trunk/test/SemaObjC/arc.m (original)
+++ cfe/trunk/test/SemaObjC/arc.m Wed Jun 22 13:03:53 2011
@@ -525,11 +525,11 @@
@implementation Test30
- (id) new { return 0; }
- (void) Meth {
- __weak id x = [Test30 new]; // expected-warning {{cannot assign retained object to weak variable}}
- id __unsafe_unretained u = [Test30 new]; // expected-warning {{cannot assign retained object to unsafe_unretained variable}}
+ __weak id x = [Test30 new]; // expected-warning {{assigning retained object to weak variable}}
+ id __unsafe_unretained u = [Test30 new]; // expected-warning {{assigning retained object to unsafe_unretained variable}}
id y = [Test30 new];
- x = [Test30 new]; // expected-warning {{cannot assign retained object to weak variable}}
- u = [Test30 new]; // expected-warning {{cannot assign retained object to unsafe_unretained variable}}
+ x = [Test30 new]; // expected-warning {{assigning retained object to weak variable}}
+ u = [Test30 new]; // expected-warning {{assigning retained object to unsafe_unretained variable}}
y = [Test30 new];
}
@end
More information about the cfe-commits
mailing list