rjmccall added inline comments.

================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:5080
+def note_explicit_ownership_qualification : Note<
+  "explicitly specify ownership qualification">;
+
----------------
How about:
  warning: block captures an autoreleasing out-parameter, which may result in 
use-after-free bugs
  note: declare the parameter __autoreleasing explicitly to suppress this 
warning  (include a fixit on this one)
  note: declare the parameter __strong or capture a __block __strong variable 
to keep values alive across autorelease pools


https://reviews.llvm.org/D25844



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to