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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] Can misc-include-cleaner check headers too?
        </td>
    </tr>

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

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

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

<pre>
    The following is clear from the [documentation](https://clang.llvm.org/extra/clang-tidy/checks/misc/include-cleaner.html) for `misc-include-cleaner` :

> Generates findings only for the main file of a translation unit.

But it would be great if this check could also check header files, not just the main file. Unused includes and missing includes from header files are just as worthy of warning as in main files, or if not, then can I know the reason?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsks1ynDoQhZ9GbLpmCgTCsGBx7bmksk8eoJEakC0kl9RkMm-fErHjcSobKP30OX1aH6ZkF080CPUo1KXAndcQh3Ql2igWUzC34dtKMAfnwtX6BWwC7QgjzDFswCuBUI8m6H0jz8g2eKEuQnYr82sS9X9CjkKO2qFfzs792M4hLkKO9JMjvh-c2JpbXqykX5KQ42aTFnK0Xrvd0CkbeornlTcnZA9ziCDaMt86_XVHtCVk1_Iiyvdv_T98IU8RmRLM1hvrlwTBu9uhlDNsaD3M1hGEGRA4ok_uSAO7t3y-13vcGSzDNezOwESwREIGOwOveTg5A-jjEF0KbxsroaF4WCQhn8AHhuc98Wf3M3z3eyIDb6kSoDew2ZSO0b9vHqO_VwSM9FsOE1xD5PWWg1wx-lyICaz_cDkaCDG37APnBa_kQaOHr_Diw_VoKhKm4EU9FmaoTV_3WNBQtb3qqq7sVbEOTa9aNF2jG5zr6UFLY1D1Vac70h1WsrCDLGVd9vKhknWj1LntqDKtMk01TVTVnWhK2tC6P2QUNqWdhvZBqbJwOJFLB5pS3oMiM6pxyEWnaV-SaEpnE6cPGbbsDqjvytQFntDDv6j59EgJOISce49u-IzxYnndp7MOm5BjNnv7nV5jeCbNmdkcIDN8ZPgVAAD__4w_IOQ">