<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56586>56586</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Get message from clang-tidy when use [[maybe_unused]] variable. 
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          dasfex
      </td>
    </tr>
</table>

<pre>
    Let check out this code:
```cpp
int f([[maybe_unused]] int n) {
  return n;
}
```
If ```n``` was unused and not market with ```[[maybe_unused]]``` attribute, there is a good action to point on this. 
But if ```n``` used and marked with this attribute you only pollute code with this attribute. So it can be removed. 
My point is that we should have one from two states: 
- unused variable with attribute;
- used variable without attribute.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx1kt2O2yAQhZ8G34xisTh2nAtfbBptVam96gNUYCY2XQwR4KR--47t_EjtrjSSYWDmfHOw8npqvmOCtsf2HfyYIPUmQus1suKV8SPjr6zia7Tn85oxLsGJiZqVB4pBTgp_jW6MqFl5pID5gmNiD2x3WEsAAqYxOEoXtxTbHf8RWLffTvDIuMcKrjLCKgLSaXA-wSDDO8FfTeqfJZ9BPTvJlIJRY0ImvtC8GBBoZgmd99S7TcY7SB7Ofh5jXpMlOaxwB7LIfAz4QFuw9Iq12PkQhMmP1NFO1NzaOTE7_dHNHH56MPQw0oFCMm_wF9R3ih_TjY5KUi_JAoTY-9Fq6OUFSQLhFPwA6eohJpkw0nPeijd3Gy8yGKnsTf_pyv2BNvD_tfkXeUJmuin0vtjLLJlksflKrzFgjLK76bdWum6TjJ7g2qObG8Knf81dKIdsDLbpUzrP2Ey8UXQkPqq89QNtrL3cP5tz8L-xTbQ1MY40qHgrq7Kusr6Rqqyqsj3xuii2FddlsS11td3zSmx5pXVmpUIbm5lICIdXWFrQmnAy0wguBN-91LwWL7zOVal4Ub3sCqk439eCbTkO0th85sh96LLQLEhq7CIdWhNTfB7KGE3nEBc56i9HsjM0WsYT_skW5WYh_ws2vSFg">