erik.pilkington added inline comments.

================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:3312
+def warn_impcast_float_to_objc_signed_char_bool : Warning<
+  "implicit conversion from floating-point type %0 to BOOL">,
+  InGroup<ObjCSignedCharBoolImplicitFloatConversion>;
----------------
aaron.ballman wrote:
> Can you put single quotes around `BOOL` since it's a type name? Same below.
Sure, this also needs to be fixed for 
`warn_impcast_constant_value_to_objc_bool` and 
`warn_tautological_compare_objc_bool`, I'll do that separately. 


================
Comment at: clang/test/SemaObjC/signed-char-bool-conversion.m:3
+// RUN: %clang_cc1 -xobjective-c++ %s -verify -Wobjc-signed-char-bool
+
+typedef signed char BOOL;
----------------
aaron.ballman wrote:
> Can you add a test verifying the fix-it behaviors (with and without parens)?
Sure, while testing this I noticed that we don't handle parens with 
`OpaqueValueExpr`s properly, so I added a case.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67559/new/

https://reviews.llvm.org/D67559



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

Reply via email to