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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy: add a flag and config option to prevent NOLINT markers from suppressing warnings
        </td>
    </tr>

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

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

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

<pre>
    Use case: We need the `NOLINT` to avoid breaking the build when we intentionally decide to violate a lint, but I think I still would like it to show up in code review so that the reviewer can see the what is being suppressed without needing to do extra digging. This is especially important for bare // NOLINT where there isn't even a warning label for the reviewer to google. It might also be interesting in an IDE context with clangd or other clang-tidy integrations, especially if the NOLINT demoted the warning to a hint or information level output which is less intrusive than warnings, but still makes the information (and FIXIT!) available on demand when reading code.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUU92OqzYQfhpzM9oITH4vuNjT00iRqlOp2qq9HfAA0xgb2QOcffvKzqa7vYpi8833N8YYeXBEjTp8U4fvBS4y-tD8QeYbYTDloa6K1pv35s9I0GEkVb_CXwSOyICMBOpY_vj9t9uPN3UsQTzg6tlAGwjv7Ib8SbuwNbCN5GAjYCfkhL1Da9_BUMeGEnBlb1EIECw7UfoXaBeBG8jI7g43iMLWwuYXa8DynYAlweLoN1hmYAedNwSBVqYNogcZUTL_44gCdOggEuXDLd1yhJaSzLjMc6AYycDGMvpFssPswIPxQD8lIBgeBnbDDt5GjglNcaaOsxOeZh8EnUDvA7QYCJS-Kn2FRz4pgJC5AwFHp_RJgFZygLBhcInLYks24_-nWzwM3g-WdnATmHgYBdBGD-0jzkBREpwdoIPb91-h807op2Qz0Fl0gwEfwCf2x_8XYfOe0UPAVEdMkX_102cRH-INTV4-Kn-qTW3DyE7SaHa9D1OeBJZWsuAXmReBbeRuTFlZijERhiXymoJA9xwVn3U_Sp7wTjFTfZ2q9Bmdgevt79ub0pXSF8AV2WJrCbxLEtN93rNAmMtLK7ErTFObS33BgprqVNdan87luRibqjOdPp4uujocSqzPp2PXXQz1_f5C-64_FdzoUu8rXdaVrsrytDN4wLY9HLW-9ISHWu1LmpDtztp12vkwFBzjQk1VnfenS5H7jPltaf0Zu9I6vbXQJNRLuwxR7UvLUeLnHGGx1HzB1K-AxgBCb3GA5LTzrucB_JzjEQ9zSPskz84mDHcKEfrgp_82PKXyTL1Ygm1GkTmq-vWxrAPLuLS7zk9KX5OYj5-XOfh_qBOlr9lhVPr6YXJt9L8BAAD__2CxepY">