<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/95721>95721</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[feat] Different clang-tidy exit codes for diagnostic-error and check errors
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
peakschris
</td>
</tr>
</table>
<pre>
It would be helpful for upstream tooling that calls clang-tidy to be able to easily distinguish between clang-diagnostic-errors and normal warning-as-errors requested through configuration. At present, both types appear to return exit code 1.
The ask is for different exit codes to be returned for these two cases from clang-tidy
Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUUs2S2jAMfhrnooFJHELgkMO2DDO99wUUW4ldjJ1a8lLevgPZdtmLf8b-JH0_yOznSDSo7pvqThUWcSkPC-GFjcueqzHZ-_BD4JZKsDASOArLVAJMKUNZWDLhFSSl4OMM4lDAYAgMJmCcN-LtHSQ9gDgGehwJ2Yc7WM_i41w8OxhJbkTxA2M9zjGxeLOhnFNmwGghpnzFADfM0cd5g_zvMdPvQixkQVxOZXZgUpz8XDKKT3ELbwJLJqYoSn-HMYkDuS_EgMtCmB8zZZKSI9AfL2CSJWi2qj6p-m1dfzoC5At4ftK2fpooU5RPAH-QXAuRff4TR0wgtwQGmRimnK4vunztgPHCSjfrtbJDa4_tESsamr45dL3etV3lhr7T7VQfjW2o7Y_G7Eynx8ZgPx1sb3Vf-UHXelfvm71umrbrtm1NU0fHA5qD3df7Vu1quqIP2xDer9uU58ozFxqOXa-bKuBIgZ9x0PplVK0f8cjDA7QZy8xqVwfPwp9lxEt4BmkiFNWd4PRfppcsvCi2SvnV66fVxpG5wGpvVXIYnMjCqn1T-qz0efbiyrg16ar0-dH-Y9ssOf0iI0qfn5RY6fPK6n3QfwMAAP__JN39-g">