Issue 91077
Summary [clang-tidy] Handle missing parenthesis around non-trivial conditions in ternary expressions.
Labels clang-tidy, check-request
Assignees
Reporter RKSimon
    As reported on #85868 (and case inside llvm/clang fixed by #90391)

We have cases like:
```cpp
    for (unsigned i = TSFlags & X86II::EVEX_K ? 2 : 1;
```
Similar to #84481 it'd be much easier to read if this was:
```cpp
    for (unsigned i = (TSFlags & X86II::EVEX_K) ? 2 : 1;
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to