[clang-tools-extra] [clang-tidy] Fix false negative for binary logical expressions for tw… (PR #230846)

via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 11 08:16:36 PDT 2026


================
@@ -211,6 +211,11 @@ infrastructure are described first, followed by tool-specific sections.
   <clang-tidy/checks/bugprone/std-namespace-modification>` when checking
   lambda closure types used as template arguments.
 
+- Improved {doc}`bugprone-redundant-branch-condition
+  <clang-tidy/checks/bugprone/redundant-branch-condition>` check fix for 
+  false negative when there are two declaration statement in if with && 
----------------
EugeneZelenko wrote:

```suggestion
  false negative when there are two declaration statement in `if` with `&&` 
```

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


More information about the cfe-commits mailing list