<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55048>55048</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-tidy warnings of type clang-tidy-nolint stop occurring after the other warnings in the file are fixed
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
sean-mcmanus
</td>
</tr>
</table>
<pre>
This seems like a bug to me. Repro is with clang-tidy 14.0.0.
Sample C++ repro code is
```
// NOLINTBEGIN
int main()
{
int i = 0;
}
```
Ideally, it would generate a clang-tidy-nolint warning still, which re-appears if the `= 0` is removed (to generate a cppcoreguidelines-init-variables warning).
Otherwise, the user could fix the other warnings in the file first, and then miss fixing this one, which is what happened to me.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyFU8GOmzAQ_Rq4jIgMhIQcODSbbhWpykrt_oBjD-DW2Mg2YfP3HZOku5VWKlhmbM_Me288nK28Nq-98uARBw9a_UbgcJ46CBYGXMEPHJ0FcphV6EFobrosKHmFfL1i9CbskLAvt_knH0aN8JQUexrgllBhJVL83W_D7uO2LJ5pwOnl-_H0uv_67Xi67SsTYODKJEWdFLu773Z_M4Ce6KAgKQ_AknL_cDh8DrLMR4lc62tSPIEKMNtJS-jQoOMhKn4XlhmrY_qZO6NMBz4orWPY3CvRk6iMjyNy50G1EHqECLQQ2bBYJ4eDvaAE4k4l_AgxjsI67CYlkRDQZ8qokF24U_ys0T8QSfE_VX0hEDcrj5FEBJw8OiprVNCqt2XLRp9HAmJmlt1W6Tg5H2IoNzLuGhiU9zEyqgvx7q3Bd4HxqnseoI8yDQm5NcKNSyqbUu7KHU-DChqbD_3wF9xSWa4jflJSH-wIVojJuYjN20Ck_0Ofu2i8oUwnp5s-hNEn5b1xOmrJ6bwSdqCF1pfHJ6O--4WCVD-T1Ak9GVXF1nXaN7jDNStyyUpRllsUot3mVV0LfuaCb2Sean5G7Zukoh4uDM6wpCA7qQ6pagpWFGxd0FTVebHCtsp3AtsN24mabepkzZA6V68ij5V1XeqahRL9Up4OtfLBvx9y71VnEBc4ys-n0FvXeOQmG8TAzeTTBb9Z-P8BbkQu9w">