<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/80852>80852</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Create readability-logic-missing-parentheses check
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy,
check-request
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PiotrZSL
</td>
</tr>
</table>
<pre>
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.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUk-L2zoQ_zTyZUhQlNhODj7sZgk8eA8e7K23sTW2p6tIrjTerPvpi7wpu4WWgkDSoPmNfn8wJR48UaPKR1U-FTjLGGLzPweJX57_Ldpgl-YfZeoroLXsB5CRE4wUCVJQ5gwMtzA765WpBfoQB5Kt0k9KP5wjoRB0I3UvICMKWBLqBK6cUoZS5qjMCTCG2VtwYeAOHdDbFCklDj7BbSQPYaKIEmKC0IPlvqdIXmCKHCLLAhgJ5kT2PlZV-r7WKwDAGyhTKVPBAqo-q_oM39X-8bfPn8fMBlpS-4c_4ilz_IDMFP6G-h-yh2mOU0gEnEBCpum4Y3ELpDHcgF7RzSgcPIRoKd7ZPFgLYVrLEoAHH7LyY4jyWahsBKZ3b27sHLQEN1yyLP3s3mW8ol8-aflTNWAP2Q1HoCrNvao0hJhbIv3iRW5wwQ95luOX7P-VoJ99t_6uQ-fStrDN3p72Jyyo2dW6NvuD1qYYm32JWtdl3_ZHc6S2bo-HXYUn3fWmMrraFdwYbQ46n8vcs9Uno01V7lBrPBFaddB0RXZb516v2xCHglOaqTnqY2kKhy25tMbYmM6hHzbCdlHGKHPOpZzCTaRvMyXJ1fKpiE2G2rTzkNRBO06SPsCFxVFzz3AktNiyY1k2a0439wxvJsxhHClRek96MUfXjCJTygkyF2UuA8s4t9suXJW55AH3bTPF8JU6UeayUknKXFY2PwIAAP__Q1Akag">