[clang-tools-extra] [clang-tidy] Fix readability-simplify-boolean-expr for init statements (PR #172220)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 16 02:54:33 PST 2025
================
@@ -80,6 +80,12 @@ Examples:
``if (x) return true; return false;``
becomes ``return static_cast<bool>(x);``
+.. note::
----------------
zwuis wrote:
No need to mention that "some cases are handled properly". You could add examples if you want.
https://github.com/llvm/llvm-project/pull/172220
More information about the cfe-commits
mailing list