<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54114>54114</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`misc-redundant-expression` should ignore redundant expressions in concepts
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
philnik777
</td>
</tr>
</table>
<pre>
clang-tidy warns with `misc-redundant-expression` in
```
#include <concepts>
template <class I>
concept Iter = requires(I i) {
{ i - i } -> std::same_as<long>; // here
};
```
`i - i` is obviously a redundant expression, but it can make sense inside a concept.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFUsFyozAM_Rpz0ZABQ-LkwKFJtjP5ih1jK-CtsVnLtJu_X4Wm7R46s4zAPCTr6T3cR3vrjNdhKLOzN3jTKRC8uTyC2FWTI1MmtEuwOuQS_8wJiVwMnAMXRHUW1RO_P-IdysYF4xeLIJqTicHgnEk0Px7p9Zlxmr3O7yVeE8Hls-KxBS4ZE-fPkPD34phYyP0FnJAHEOr4Xgt8MQAHJd9CnaHkPkDZiuaJg_SEPzWzn3wMw52iOYKQzxwwYsLHTOrM379Xs6vW3qtggti_uriQv4GGT1_gH1_kCfolg8tgdIBJvyAQBkJ2ixxbouEhb1PYrrGH5qCL7LLH7n920xgXb8ENISb8lpyY5KM9FUvy3ZjzTHcnVsUD_9Wl35g4MfD-9WMp5xR_ockMHdFyN_p529Z1W4xdg9fDXtVXjXbbttVub0yNO9P2aFtlURZe9-ipE9ujkPLrIDEQ23PhOlnJe-zrtjnU7aZXqq6uW2uvqpFNq0Rb4aSd39wH2cQ0FKlbZ-qXgTjpHWX6SvJJYQMQVz7ur5c8xtTNo_PBvSililVBt47_F-HO5QQ">