<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=http://email.email.llvm.org/c/eJylVMFu2zgQ_Rr5MqihSHZsH3xomwbNoehlgT0WI3JkcU2RXpKy4b_fR0rZpEVvBRKbNIdv3rx5w87r-_HvQRxN0bgTVY-1suxOH5LRd2woebLGJeqNlVg1n8kkciI65hMEVE1rnLKTlhI9CGm5iNPilJG4pm8-CPk-IUMa2JHzKaMM_iZXCXn5Pp4Y0eOkBrIcThKInSY_JSCQ8i4Fb_Myp8E2TiNCAJvIRAqTc78rYV3VT1X9cfn85TAT6O7g0PNkCzM1hSAuWfzoQWhOhZ9UwjrjZ0qogoJcfEgkIfgAZZ5vHHL-SH3wY7n3qzx6VnFNX9-qL8E3TqpgQ1yUMctcNbtIygoHcInJWEus0sQWWzWIOucLafBRZljqfVjYrOmvAYr80IFHTkblOz8IRIJwXIpKZpScL_F5ufu73oPNTNHNPIyLiWGH3Pzdl5aioA96vs9z02gQ1uhLJgXvnGcd2s-OL2Y9VO2XDF01-21zrppP9Cpb1TxUzWFhDp65zJOkiJSF743vpfXe27j03CU5BU5SHCohh4KX8lpItEkQgjhSVjorhsoEwP9OJsiC8Mof_bd8_8koLziCcS_JwGfEXTYhKkKaLPtcYqSs-BXWBgFgdlNxEIA7iWkZFuv9Oc46vKClukzPPFYxFW_PBPP4QbBQaKLQMYtdnKPfKxrpNhjMB0T63w2MW5AoLPq7aeywAcZ8oZSq_GQ1sY1-kWJNLzTwFUYIBimYroxFui_zFd8Vvxge_0aV0GhOzvTwFZywCIsudQI8A0n83LFRAK0i8qg81kXDnzUuTsxHpbvQRHuUB7azUlm0qn2m7yGXO4dGD9v2k9M8YkrZZqtEJLwN9zyfkCcXihHaJSzDGffnZCt9bPWhPfCKJ0xNOCqDVyd01qvzagr2OKR0iVX7EaOMv5NJw9StlR-xsfb6-vXhEvw_eAywNTFO-U183jaH7WE1HHs-7LhrHmXfSr9tu81DXe87qR8Vd-1mJyvLndh4rLafqqZxcqMCgXW1fVr9OQNzbOqmqR_w0TT7ulmL3iipd6rdPu4P9aavNrWMbOw646x9OK3CsUB2EwZwU2dLxrdDjrnRIoUwGCaTbNm8eya2T_S9-CS3L7ukPE1v1i0WXBWix8LyP1C7NbA>52959</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Option to not check included files
        </td>
    </tr>

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

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

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

<pre>
    When using `clang-tidy` to lint files, it needs to `#include` the dependencies. More often than not, however, dependencies are much larger and out of control of the consumer that is running `clang-tidy`.

`clang-tidy`, by default, currently does the correct thing and not report errors/warnings from the `#include`d files. However, from watching it run, it's clearly still actually checking those files for errors. This _dramatically_ increases the time it takes for `clang-tidy` to run from nearly instant to ~3 seconds for a large header file like `<napi.h>` (52k+ warnings!). This really gets in the way of tools that integrate linters into code editors as every change requires that 3 second delay.

I see options about filtering headers or even lines but, at best, it looks like I'd need to list out every single range of my included header files which is actually a rather large number of files that could also change. I have tried a variety of these options and not noticed a significant change in behavior on the metrics I care about.

Is there a way to do what I'd like? Or is there some fundamental reason why this wouldn't work?

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtVMuO2zgQ_Br50ojgkezx6OBDXoPMIchlgT0GLbJlcU2RXpKy4b_fIqXZmQQB_CDFZndVdbV6r-_Hv0dxNEfjTlQ9bpVld_qQjL5jQ8mTNS7RYKzEqvlMJpET0TGfIKBqWuOUnbWU6FFIy0WcFqeMxJq--yDkh4QKaWRHzqecZfQ3uUrIy_fxxIieZjWS5XCSQOw0-TkhAynvUvA2L3MZbOM8IQRpE5lIYXbuTxTqavul2n5cf387zAD6OzAMPNuCTM0hiEsWDz0ALaXwSCWsc_4MCSwoyMWHRBKCD1Dm-cYh1480BD-Ve7_LoxcVa_r2xr4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