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

    <tr>
        <th>Summary</th>
        <td>
            run-clang-tidy.py should only search for clang-apply-replacements if really needed
        </td>
    </tr>

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

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

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

<pre>
    Currently, `clang-apply-replacements` is also searched for when `-export-fixes` options is given, but `-fix` isn't:
https://github.com/llvm/llvm-project/blob/3fee9358baab54e4ed646a106297e7fb6f1b4cff/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py#L303-L307

However, the binary is only needed to actually fix issues:
https://github.com/llvm/llvm-project/blob/3fee9358baab54e4ed646a106297e7fb6f1b4cff/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py#L382-L386
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzVUsGOnDAM_Rq4RIwggRAOHLa7GvXQn3CIgbQZgpIws_P3NdBqDlUPPVZCcexnx34Pa2-e_fsWAi7JPTP-zjJZDg6WqYB1dc8i4OpgwBvhkSBmIwMXPYsIYZjRsNEH9phx2QsL_Fx9SMVoP_HI9muyfol71WTvuOwN9JaOXEo6H6RomzLxlpUfWfk2p7TG3eNX-iab5k1fBn8jx7n7b1OswX_HIZGrnddkxIjYiUZpAN3UWKORtYSqlLxrsR21HCtdD-NIqSe_5L2LNHEK8IpZQyJcd4hM2JbiFb-sBIlvohQFHe057Xl-9Q-8Y9jZpRmZtguE507aL-7JFkRDQiXPYEgbOAoRd4LjhvH_4a048VYyx76SUnLVqbbLTS9MJzrIk00O-z8qWZz95swpxLkzx8b8bcWYHVnAQ6NTtnwLrv9nbX5py6-NakqVz70WTWVqUqVTI0A7tFzVjSLZZKs6AZA70OhinzVfMs4XfJy_h-5Z85HbnpecVyUvK1W1TXcxMMgBR1mXULXCyKwu8QbWXfY5Lj5MeeiPkfQ2RQKdjSm-QIjRTsTvaEfvw5ZmH_owQxzmH5gfvftj9p80Gy3d">