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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy option to only run checks that offer fixes
        </td>
    </tr>

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

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

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

<pre>
    Can we add an option to clang-tidy to only runs checks that offer fixes?

The new option can be named something like `--checks-with-fixes` on the command line and `ChecksWithFixes: true` in the config file.

If the `--checks` or `Checks:` option is also specified then clang-tidy will only run the subset of specified checks that offer fixes.

For example, if the user specifies `--checks-with-fixes --checks=-*,cppcoreguidelines-*,-cppcoreguidelines-init-variables`, then clang-tidy will run all of the `cppcoreguidelines` checks that offer fixes except for `cppcoreguidelines-init-variables`.

Apologies if this is a duplicate - I searched and couldn't find any similar issues raised in the past.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU01v4yAQ_TX2BTlysJ2mBx-yrSL1vtKeMYztaTFYgJvm3--AmzRVN9JK_hjm482bB3RWndsnYdgJmFCKkWXngNawYJnUwgxFQHWOK2v0mbnFeCZHkG-ehVEEZvseHOvxA3xWHbPyOSsP6_f3CMzA6YInCbojj5hAMW8nCCOagWl8A5btyqJYUYsThrFY8XYli0QIR9ppEkZRtiGeZFDsKeX_ofTj2v3AglsgVuGlyvQ4EDkNm1tmL30K33RNrdwXKoEl10odPRPaW-ZnkNgj8adycyvPCbW-CpTA_dJ5iPLcVN3R7Ru3I9GADzHNGjL-xHClunhKvgD5O3qx6zTVc5HxA9XLeZbWwbCggqid__QXPwNoMBTvwqHodNI-tv_nnHFEEee9yvgDLYp3Z1qaTsIcWL_q_R9EvulzmK22QxQhSUNbE3eHqWXWKEUAVrAX5kE4aq_SUZF20cpk_IF6oom-M_M4oRaOav1CUE6gp-zPYzMLHza5aiv1WD2KPGDQ0N6I8HVBrjt-Z9Z8cbodQ5jTgeJHegbarqXb0IGmhdbvl18xO_sKMtByJUVGUxOBfGz3clfV-4fmcUt6lZWSvdzzuirplXxXNbkWHWjfZs2vjPN45xIE2VnznGPLS87Lmorrum72m33NxVZu-53aipo3PKtLmATqTeSxsW7IXZsodcvgKajRB_8VFN7jYABSO8IXSxita_0JYAKXp9Ztov4XiHR4Sg">