]> granicus.if.org Git - clang/commit
-Wreceiver-is-weak: rephrase warning text and add a suggestion Note.
authorJordan Rose <jordan_rose@apple.com>
Fri, 28 Sep 2012 22:21:42 +0000 (22:21 +0000)
committerJordan Rose <jordan_rose@apple.com>
Fri, 28 Sep 2012 22:21:42 +0000 (22:21 +0000)
commit3437daad71d8694d4ddd25418751f2763c0f8979
treed7eb6417ab560b049b7c843f1eb3fde7bd768403
parenta55d32d1b8f799bf58c02540983976368c42d895
-Wreceiver-is-weak: rephrase warning text and add a suggestion Note.

New output:
  warning: weak property may be unpredictably set to nil
  note: property declared here
  note: assign the value to a strong variable to keep the object alive
        during use

<rdar://problem/12277204>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164857 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaExprObjC.cpp
test/SemaObjC/weak-receiver-warn.m