jroelofs added a comment.

This doesn't forbid assigning them to block properties... is that intentional?

  typedef void (^Block)(int);
  
  @interface Foo
  @property Block B;
  @end
  
  void foo(Foo *f, Block __attribute__((noescape)) b) {
    f.B = b;
  }



================
Comment at: include/clang/Basic/AttrDocs.td:123
+* Cannot be captured by a block
+* Cannot be assigned to a variable
+
----------------
Is it helpful to forbid taking the address of them, too?


https://reviews.llvm.org/D32210



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

Reply via email to