Issue 80852
Summary Create readability-logic-missing-parentheses check
Labels clang-tidy, check-request
Assignees
Reporter PiotrZSL
    I'm adding this here so, i wouldn't forget.
Create check that detect missing () around logical expressions when operators of different priority are used.
```
    x && y || z;
```
Should be:
```
    (x && y) || z;
```
Main purpose is to explicitly show evaluation order.
Add option to ignore short expressions, as this will be way useful when many operators are used in single `if` or where expressions are long, like some function calls.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to