Issue |
90970
|
Summary |
[clang-tidy] Extend readability-simplify-boolean-expr to ternary operators with one bool literal
|
Labels |
clang-tidy
|
Assignees |
|
Reporter |
chrchr-github
|
~~~c++
void f(bool a, bool b) {
if (a ? b : true) {} // !a || b
if (a ? true : b) {} // a || b
if (a ? b : false) {} // a && b
if (a ? false : b) {} // !a && b
}
~~~
https://godbolt.org/z/5xfx9c6P5
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs