From: Fariborz Jahanian Date: Fri, 24 Jun 2011 20:00:03 +0000 (+0000) Subject: objc-arc: Give more descriptive diagnostics when X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f2050f21a1e2c640710776c6e7b37c8c3d96ecf3;p=clang objc-arc: Give more descriptive diagnostics when making unsafe assignment of a retainable object, Per John's request. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@133817 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td index d514c1b19f..dd378fa191 100644 --- a/include/clang/Basic/DiagnosticSemaKinds.td +++ b/include/clang/Basic/DiagnosticSemaKinds.td @@ -2601,10 +2601,12 @@ def warn_arc_non_pod_class_with_object_member : Warning< "to make it ABI-compatible">, InGroup, DefaultIgnore; def warn_arc_retained_assign : Warning< - "assigning retained object to %select{weak|unsafe_unretained}0 variable">, + "assigning retained object to %select{weak|unsafe_unretained}0 variable" + "; object will be released after assignment">, InGroup; def warn_arc_retained_property_assign : Warning< - "assigning retained object to unsafe property">, + "assigning retained object to unsafe property" + "; object will be released after assignment">, InGroup; def warn_arc_trivial_member_function_with_object_member : Warning< "%0 cannot be shared between ARC and non-ARC "