[clang] [clang] Fix-it hint for `++this` -> `++*this` when deref is modifiable (PR #94159)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 06:27:14 PDT 2024


================
@@ -10,6 +10,7 @@ void h() {
   SEL* ps = &s;
 
   @selector(dealloc) = s;  // expected-error {{expression is not assignable}}
+  // expected-note at -1 {{add '*' to dereference it}}
----------------
Sirraide wrote:

I do hope someone who knows Objective-C(++) can come along and comment on whether this makes sense, because I candidly don’t know.

CC @rjmccall 

https://github.com/llvm/llvm-project/pull/94159


More information about the cfe-commits mailing list