[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 18 12:51:12 PST 2024


================
@@ -147,3 +147,38 @@ Options
       if (foo) {}
       // ^ propose replacement default: if (foo != 0u) {}
       // ^ propose replacement with option `UseUpperCaseLiteralSuffix`: if (foo != 0U) {}
+.. option:: CheckConversionsToBool
+
+   When `true`, the check diagnoses implicit conversions to `bool`. Default is `true`.
----------------
4m4n-x-B4w4ne wrote:

Done Thanks.

Can you please also review ImplicitBoolConversionCheck.cpp?

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


More information about the cfe-commits mailing list