[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:54:34 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`.
----------------
EugeneZelenko wrote:

Please wait for other reviewers. I deal only with documentation and minor code style issues.

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


More information about the cfe-commits mailing list