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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy-diff] Will run against files not referenced in compile_commands.json
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-tidy
      </td>
    </tr>

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

    <tr>
      <th>Reporter</th>
      <td>
          blozano-tt
      </td>
    </tr>
</table>

<pre>
    There may exist a repo that contains C++ sources that are not associated with the project being built.

Such a file would not be referenced in the compile_commands.json.

When you pipe the output of git diff, into clang-tidy-diff ... it will attempt to analyze the file anyways, leading to diagnostic errors.

We are having to do some hackery to work around this, by finding the union of the files in the diff, and the compile_commands.json.

https://github.com/tenstorrent/tt-metal/blob/12b822c7211d286559fe6900d399dff06c0e01e6/.github/workflows/all-static-checks.yaml#L171-L187

Can this be done by clang-tidy-diff instead?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8k0-PnDgQxT-N-1IC2ab_DAcOMxNxym1XynFV2AU4Y-yWXUwv-fQr092KNopyQhT2T-_V42HObgpEnTi9idOXA648x9QNPv7AECvmwxDt1v09UyJYcAP612UGhETXCDwjg4mB0YUM70K_Cf0GOa7JUL5_xUQQIgPmHI1DJgs3xzPwTHBN8TsZhoFcmGBYnedayFchX_9azQwIo_MEt7h6uzMGgkQjJQqGLLiwQ0xcrs7TPyYuCwab6-85hgfm20wBtrjC1V1pPx1Xvq4McYTJMVg3jkK_gwscwXgMU8XOblWZQ13X4BhuzntAZlquDBwBA_rtx52268Ow3XDLheMJbbHCEazDKcTMzgClFFN-SqJ9JTN-Pg9GyHEpE_NBaSujW0wfgCmuwQLPbkcPG4wu3OkzwRpcDMXGU0Z-7uPpCffLf97PzHzNonkVuhe6nxzP61CbuAjdM4XMMSUKXN64WojRC90PPg5C90oPL1qbi1bK6pfz6dSOdG6ltE3b2nGUZyNJKjoL3dd3sNB9MTb6eMtC9-h9lRnZmcrMZD5yveHihW6-qouqvqqXy13jO4Z9CSV9GwOVTfwalQuZCa1o-oPtGts2LR6oU5emOSmt2_Nh7uRI4-VCx-MgT4M2hi54kgobPRIqpc8H12mpj0rLs2qVas51K8dmpEbS8DKaVjbiKGlB52vvP5c6pungcl6pU6qVSh48DuTz3iOtfwoUWpdepa7cqoZ1yuIovcucf3LYsd8b-IsvcfoC38rvl9YAOJWS8SPsUof_d-G3OR_W5Ls_pFwkPB7Vo41C97uvktHD2men_wsAAP__l0VmHg">