<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/141249>141249</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy] Check request: readability-bitwise-missing-parentheses
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
denzor200
</td>
</tr>
</table>
<pre>
Needs the same check as "readability-math-missing-parentheses" but for a bitwise operation combined with an arithmetical operation in one expression.
BEFORE:
```
netChange[i] = nums[i] ^ k - nums[i];
```
AFTER:
```
netChange[i] = nums[i] ^ (k - nums[i]);
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycks-K2zAQxp9GvggHeWRt7IMPziY-trD0BSR51p6uLaUaebfbpy8JoQ2hp4JAf9B8HzPfzzLTFBA7YQ7CHAu75TmmbsTwKyZQqnBx_Oy-II4s84yS7YrSz-jfpGUpABLa0TpaKH-Wq81zuRIzhak824Qhz8jIAkC6LcvXmKSVjvIHMcp4xmQzxSB9XB0FHOUH5VnaIG2iPK-Yydvl7h8FGQNK_HlOyEwx7ITqheoPp-Hry0noy1k8qdtSfcD8PNswoTAHEuYohT7KsK38525O8k2W929CHx5UhOr74dvp5T_1BTSPFtA-uBRjp8dWt7bArtrXjar2jTbF3NlXZ8BXrfeqhRH13jvvna4bVXtEqAvqQIFRBnT1pJU2u6pRajRN5dRon8zeiFrhamnZLcv7uotpKoh5w66qK6jbYrEOF76mD-AXG6Yy0_gpAC40pO5SVbptYlGrhTjzX51Meblyc1dmjvL5CkfCHxtyFrqX94Tcsv8XJMWWlm7O-cyXQcMgYJgoz5vb-bgKGC6-t608p_gdfRYwXJthAcOtn_cOfgcAAP__dWff9A">