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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] readability-simplify-boolean-expr requires redundant NOLINT to shush
        </td>
    </tr>

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

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

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

<pre>
    Consider the following code:

```
inline bool check( OptixResult res )
{
    if( res != OPTIX_SUCCESS )  // NOLINT(readability-simplify-boolean-expr)
    {
 return true;  // NOLINT(readability-simplify-boolean-expr)
    }
 return false;
}
```

The `NOLINT` on the `if` statement should also apply to the interior `return` statement, but currently clang-tidy requires both annotations to be quiet.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykUs1u2zwQfBrqsrBBUZZtHXRw7M9AgCD50KRAbwV_VhZbmnTIZRr36QsqApL20kOBBQRJOzOc4ciU7Mkj9qy9Ye2hkpnGEPs7PElnf-LOZEdjCKZSwVz7ffDJGoxAI8IQnAs_rD-BDgZZs2N8mjWfh--sd9YjqBAc6BH1dya28HAh-_oJU3YEERMw0RXY5obxHQCAHcrW25-aNQd4-P_p9svXx8_7_X-Pj2UdgIkjE0e4f7i7vX9iYhtRGqmss3RdJHu-ODtcF0UWpV_g6yW-iRT6WSgi5eiBYkbW3Pwj4-ED4yBdKpSTp8MfgTC-exoR2JrPQmsOwU9xsjW3Q3lPJAnP6AnSGLIzIF0KIC8XdwUK0671hNGGWEBvsr8BmdiDygQ6x4ie3BW0k_60IGuuEPE525KuCjSC9D6QJBt8KuQK4TlbpGVl-sZ0TScr7OtNs1qt66btqrEXqq1RG8U3HTZGm0Fzo3XbDFohdu2msr3gYlWLelNvV13dLbeyU4PU62YrTV0rxVYcz9K6pXMv52WIp8qmlLGvBRfbtnJSoUtTH4VAP0qvZ1OCiT0T4t1L-dQeqtgXpoXKp8RW3NlE6Z2bLLmp3R9g7QH-er3vOUU02RvpaS5HySmNOY1Vjq4fiS6plH_qz8nSmNVShzMTx3KG-bG4xPANNTFxnMwmJo6z35de_AoAAP__rWYg5Q">