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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] `llvmlibc-restrict-system-libc-headers` check erroneously reports on `<stdint.h>`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    The `llvmlibc-restrict-system-libc-headers` `clang-tidy` check will currently report on including the `stdint.h` header. On many platforms, this is provided by the compiler's resource folder. This file is included in several places in LLVM's libc so we should not be reporting on it. We should test in `clang-tidy` whether or not the header is not resolved by a file in the resource directory before reporting that it is a system header.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkkFv4zgMhX-NfCESOJLtOgcfdtvNqYu9FDtnWaIjdWQpEOkU_vcD2Z1MgTnNyQBNPr6PeprIXyPiINq_hZTk79o4HW3WQkrRvlR6YZfy8O6WEXNXjcmuw5tDEF0dwn0OfjSHjMTZGz7QSozzYSs61BYzia4uvSboeD2wt2spGIfmO3z4EMAsOWPksELGW8oMKYKPJizWxyvwvonY-shHV2Z33SP8F2HWcYVb0DylPJOQz8DOE3iCW053b9HCuG4aJs03HzAL-USQkdKSDcKUwib1VqYmH7CM7svRgo9AeMesQ9lhsPyC19f__91ECiNQgg8EcmkJFmJiGPETo5gvJHyEb48ORuIi8ts9PhyywwwpbyrF8Y5ZDJVKsRzuO4_-tBq3vgeM9RkNp7zCiFPKX42w0wyei5iG_Y1-nrGyg7JnddYVDqeur09S9m1duUGdet02k-2tkZPpcULT9tgrc7ZNi52u_CBrqWolz7JunlR9tJ1slJm6xoxKWalEU-OsfTiWnBxTvlaeaMGhO_UnVQU9YqAtdu1LlYfSdBiXK4mmDp6Yfo2x57AF9MvR2pc_SuAeOMw5RUwLPdJG5ZFEVwv1_MiY-kd0dbXkMDjmGwn1l5AXIS9Xz24ZjybNQl7K5s_P4ZbTOxoW8rIBkpCXjfFHAAAA___3MSWE">