<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56958>56958</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
`misc-const-correctness` not reported for C code
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
firewave
</td>
</tr>
</table>
<pre>
```c
extern int cb();
void f1()
{
int res = cb();
if (res) {}
}
```
https://godbolt.org/z/Tzrb1Yvxq
The documentation refers to C++ coding standards but there's no mention that the check will only be performed on C++ code.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlUdty4yAM_Rr8omkG49gxD35om-kX9KWPXOSYXQwp4KTt16_sNLOdXUZcxJGODkJH-zmwjt_MMH5k_BE_CqYALhQwmomeCcmapxt2Wy_RWRjrb-wGHL4jgMaamjADa47_U2wBI9AthRAAa-rheKe5H-6ibu5Uyjmz5pGJF7JTtDr6sovpRN4XzdevpOu3y8f7T5mvE4KNZpkxFFVcDCRqxJShRHhm4okMTLQunCAXFaxKNoNeCpQJEzJxyBAirNlrbpnUhoCZ0PyGq_MeYvCfoBHOmMaYZrR085MadxUOddfKg-hkLSs7NFY2UlXFFY9r52eXzYOJIRdaU0JTAuZMAJVem3iOqRAtscPzxlgtyQ__tMOVadE7E2dyvL_ct4dzir-IkVyX87J2-6XtZNtX04CcNz1vRyVbKRrd9YrvR8uNavruUNe88kqjzwNr6S0i4BU2Cjqz9li5QXAhOBHUsm7r_U72_dgZo_e2Eby1yPYcZ-X8btWx_lOVhk2SXk6ZQO9yyX9BlbM7BcStHPGrpUwxDaNLeFUXrLbaw6b9D-w10JU">