<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/97207>97207</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
readability-identifier-naming warns on the first declaration rather than the definition
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
njames93
</td>
</tr>
</table>
<pre>
Warnings for readability-identifier-naming are attached to the forward declaration rather than the definition.
This can break header-filter logic when a class is forward declared and its implementation lives in a header file that we don't control.
Ideally all warnings emitted by this check should be attached to the definition
https://godbolt.org/z/h74xYY9Yx
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUs1q5DgQfhr5UnTjyH_tgw9ZgmHvC0uOJalsVSJLQapOp-fpB3dnCGRgmIt0kL5fPiyF10g0qe4f1T1VeBaf8hRfcKMyNpVJ7jr9jzlyXAssKUMmdGg4sFwP7CgKL0z5EHHjuAJmAhRB68mBJBBPO-qC2YEjGzCjcIqQUTxlEI_x9sfRwpH3p6Oqn1T9-J_nAhYjmEz4Cp7QUT4sHIQyhLSyhYunCAg2YCnA5ZsOOcDogKUAb2-BNopy1w78TgV4x95pYeFAuxeBC4FLUelBwKYoOYVPP_86whCugCHA5VcftLEIOTBXkJtfT_YVik_n4MD83sRXyjvp_fQib0U1j0rPSs9rciYFOaa8Kj3_UHr2Q_vx_Dw-f1RuatzYjFjR9DA8jEPbnsa28tOp65H6U9ebpUVCqrFf6k73dug6Wze64knXuq37pn6ou7Zrj31_OtmGetOZngiNamvakMMxhPdt1664lDNN46DroQpoKJTbRrS2AeN6EHZXpfW-mTztoIM5r0W1deAi5YtGWAJNfx7N3meBdF_CwrnIX26lOucwfauPxZ_N0aZN6Xl38Xkd3nJ6IStKz7dkRen5Hu590j8DAAD__7yECPY">