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

    <tr>
        <th>Summary</th>
        <td>
            Using Sleep(), warning: included header windows.h is not used directly [misc-include-cleaner]
        </td>
    </tr>

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

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

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

<pre>
    I use the command Sleep() in my code. On windows I need include <synchapi.h> to use Sleep(), and <windows.h> to include <synchapi.h>. However, this gives the warning:

warning: included header windows.h is not used directly [misc-include-cleaner]
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0kUGP2yAQhX8Nvoxi2QPOhgOHbrZR99RD1R-AYdamwhB5cKz8-8pWultV6nEvIAHv4817ljkMiciI7ll0L5VdyphnY_tMkRJXffZ38woLE5SRwOVpssnDj0h0FXgSqCEkmO7gsqcavidYQ_J5ZXiFROQhJBcXTyDkme_JjfYa6lHIr1DyTv2LJPAMG1zI8wPy_vJ_lBq-5ZVuNG_aMgaGIdyId6-rnVNIg5BfRPMimsf6cfoH6mEk62mG908hMKRcNn8efJjJlXgH0T1Pgd3hITu4SDbRvKXmjfRaaluRaZ9a1cpOy64ajbMtKXRKSf32pLyVDvXRKS014cn3VAWDDapG4bHFDtuuPvmj11aTU2_SU9sJ1dBkQ6xjvE11nocqMC9kdINNV0XbU-S9O8REK-yXAnEzNZtNc-iXgYVqYuDCH5QSSiTzk0Ma_q3gUxJa5mjGUq681YEXgZchlHHpa5cngZfN12M7XOf8i1wReNmnYYGXfdrfAQAA__9Qat8s">