aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: clang/test/Sema/objc-bool-constant-conversion-fixit.m:37
+
+ b = 1 ? 2 : 3;
+ // CHECK: b = 1 ? 2 ? YES : NO : 3 ? YES : NO;
----------------
What about:
```
b = 1 ? (2 ? 3 : 4) : 5;
```
Will it YES/NO all the way down?
================
Comment at: clang/test/SemaObjC/signed-char-bool-conversion.m:48
+ bp.p = 1;
+ bp.p = 2; // expected-warning {{implicit conversion from constant value 2 to
BOOL; the only well defined values for BOOL are YES and NO}}
+}
----------------
'BOOL', 'YES', and 'NO' at some point (doesn't have to be in this patch).
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D67559/new/
https://reviews.llvm.org/D67559
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits