<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64463>64463</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-tidy][readability-identifier-naming] forward declaration breaks check
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Yaraslaut
</td>
</tr>
</table>
<pre>
Forward declaration does not emit warning for bad style
```
struct Foo{int v; int s;}; // invalid case style for struct 'Foo' [readability-identifier-naming]
struct foo{int v; int s;};
class FooC{int v; int s;}; //invalid case style for class 'FooC' [readability-identifier-naming]
class foo_c{int v; int s;};
class FooB; // no warning
class FooB{double g;};
struct FooD; // no warning
struct FooD{int v;int s;};
int main()
{
}
```
Code on : [godbolt](https://godbolt.org/z/beGbGeT8W)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk81unDAQx59muFi7AoP5OHAIQeQFKlU9VWNsWDfGjmyz0fbpK-8SbTZpklZCwGjG__nNeAa9V7ORsgXWAesTXMPBuvYHOvQa15BwK07tYN0zOkGEHDU6DMoaIqz0xNhA5KICeUZnlJnJZB3hKIgPJy0JpD2kd1Cm23M2fXDrGMhgLVSdMoEcIe9I_PGQd1D10QQ6AB2IMkfUSpARvdw0Y4ZNAmgVVWhFgHVOokCutAqnnRLSBDUp6XYGF2VmYP1N8umz5Bv1-T1q9D6y3n8J-wHrReGCev9frJeTk7U_x3-DfYPcvWqksS9X9C6o6oRduZZk_qvo9br6T_ReR11ZP0aNngWVAVoDbTZPdVtN1d-Yt1NE7q2QxBoC-V1s6WwFtzrE5tH6EMKTh_zuAru59tbNQIffQAcuH_iD_FZ_B9okos1FkzeYyDYrm4zSgrE6ObRlllcUJywrRrMpQ0oLWkuRsSateZ4WiWppSvO0Tlla54zV-yqjNedjVtSiZJxyKFK5oNJ7rY9LTJ8o71fZlkVR5olGLrV_WTzXxqAdX2cPRaqVD_56LKigzys6ajTzLihxioV-PUhxAt9tLncSHz0ZD3J8TFan2zftUuGw8v1oF6BDRNg-uydnf8kxxFGPZXigw7mSPwEAAP__tjNMTA">