<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/65000>65000</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy-diff.py should exit with a failure code when there are errors
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          FlashSheridan
      </td>
    </tr>
</table>

<pre>
    Similarly to #28002 for clang-tidy, clang-tidy-diff.py should have an option to exit with a failure code when there are errors; this would make our GitHub Action much simpler.  Even with WarningsAsErrors set, I get “1 warning treated as error” but a 0 return code; even in quiet mode there some output even if there are no warnings, which would complicate the workaround I was contemplating.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkj9zpDgUxD-NSF4NJQTMDAGB_82dYwcXP8QbpLOQWOnJ7Hz7LRi71skGG6lUanX_uqoxJTt5ol60j6J9LjCzCbG_OEzmzVC0I_piCOOtf7OzdRjdDTiAULU6S6ngGiJoh346sB1vQj19ux1Ge72Wyw2SCdmNYPCDAD2EhW3wmw39tAyrZQMIV7QuRwIdRoLVkAc2FAkwElCMISZRPwIbm2Dd7WZ8Jwg5wj-W_80DPOjdds7aQLLz4iiWAC8f5O8R_2H01k_pIb3sdpCIN-BXmIhBvChxlqJ7qmC9C4EjIdMImO4AX5JnGDIDgoRInKPfkTc42rKshx_ZEsO8Fbl3SGHeUHnJ_Cm6fmvnw1dk2nhWY7X57KjDvDirkXcnWEN8xxiyH-EVVkygg2eaF4ds_VQWY1-PXd1hQX117GpZ1aeqK0zfDCd5PKLSGs9a1hW2o5KnWo3HtjkPVVPYXklVy7M6yqpuq668NnTCSjWq7fDUyEE0kma0rnTuYy5DnAqbUqb-2EopC4cDubRvSClPK-yPQqltUrHf_hyGPCXRSGcTp98ubNlR_-fN_N1Cihxdb5iXJOoHoS5CXSbLJg-lDrNQly328zgsMfxPmoW67LBJqMte5lcAAAD__zwqCes">