[clang-tools-extra] [clang-tidy] Fix De Morgan for overloaded comparisons (PR #221432)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 19 04:01:14 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE LINT COMMENT: clang-tidy-->
:warning: C/C++ code linter, clang-tidy found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
```bash
git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp |
python3 clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py -path build -p1 -quiet
```
</details>
<details>
<summary>
View the output from clang-tidy here.
</summary>
```
clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp:936:12: warning: invalid case style for variable 'fixed' [readability-identifier-naming]
936 | if (auto fixed = tryFixCXXOperator(E, Fixes))
| ^~~~~
| Fixed
937 | return *fixed;
| ~~~~~
| Fixed
clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp:943:14: warning: invalid case style for variable 'fixed' [readability-identifier-naming]
943 | if (auto fixed = tryFixCXXOperator(Paren->getSubExpr(), Fixes))
| ^~~~~
| Fixed
944 | return *fixed;
| ~~~~~
| Fixed
```
</details>
https://github.com/llvm/llvm-project/pull/221432
More information about the cfe-commits
mailing list