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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy][request] Report unmatched NOLINT comments
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          chrchr-github
      </td>
    </tr>
</table>

<pre>
    ~~~c++
bool f(double d) {
    return d == d; // NOLINT(misc-redundant-expression)
}
~~~
The documentation doesn't mention any mechanism to detect unnecessary NOLINT comments:
https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxcUk2L2zAQ_TXji3BwxnEkHXzYYAKFsoWyf0CWJraKLaX6WDYX__ZiO223BYNHM3pPb96MitEOjqiF5gJNV6icRh9aPQY9hnKwacx90XvzaJdl0YCX9as6qF567yd2AxTG534iZgAlA_6sMsZYoJSDY4ZB3UHdMQP1hQFeAa_s9dvXL69vgGK2UZeBTHZGuVTSxz1QjNY7QLlTAe_2YFmWPXgbiRmv80wuqWS9Y8ZTdIA8sTW3ZpR7sJn0qJyNM0ueGUqkE8vOkaYYVXg8RTDt5xUVoX7Z-ceU7ttp06on5YbDNL3PBx8GwCt9pKB-F8pkzWO7WMd838W7oczOULSBTGmsGpyPyepYmLY2spaqoPbIsRFS4hmLsdWNEfJkpMZG061HTifBBRdHjmcpbrKwLVZ4qmQlj2fkJzwIrBte8Zs49ucasYZTRbOy0x-dhY0xU3usuBCimFRPU9yGjPhZN65DD-2KKvs8RDhVk40p_uVJNk3benyCNR00l0A_M8UETce-092H1dtZJT2S-d_ZIoep_dfVfbUO2s-A1_Wx56-8B_-DdAK8bh1EwOuzifcWfwUAAP__qSza-g">