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

    <tr>
        <th>Summary</th>
        <td>
            [Bug] clang-tidy: Endless loop
        </td>
    </tr>

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

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

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

<pre>
    I'm trying to write a loop like
```c++
for (size_t I = 1; I >= 0; I--) {
    // do something here.
}
```
but clang-tidy keep telling me it's an endless loop.
I don't know why, but when I change `size_t` into `int`, it stopped warning me about that.

<img width="675" alt="QQ20220726-135627@2x" src="https://user-images.githubusercontent.com/47490867/180933786-d1a9379d-5ae8-4a89-8928-fba097195343.png">

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdUc2OpCAQfhq8VDQI_h48TE_PJH2cJ9iglso2ihFcp_fpt9Se7OwSAlUU1PdDbdtHdWMiH8EvDz314C1si_YICoy1Mxh9R8avjL-wjJ-zYeKyz-O0swswUTj9G394uAGTV4iZvBzh257xIwtDJkpg-fMZ0GDinSa0Fpwd0Q87_IALRk-8_Pof8JnWq4fGqKkPvW4fcEecwaMx-_MRQXuS40BNgFNr0LlDx7PnjdAmqnu4T3aDbXgw8Qp7x23AiTg3AzVGILBTEQWgJzKFAtp3EvRAe3DezjO2sKlleiKr2lIjPyj_peBc5asee9h06wfygwmR5SmtoIw_848PwYXgucjCWKaZyFnCxed-xS3NeWXwfnZMvpyerQ6XUI-qRxf12g9rvZ80dvI4-aixI91J8qTkRZZTGBe8lDIvsrCNVSnzsg1ThUWYqKIMi1IUYVcrXuZxmcpERvPUE-L-ewf_AKs4S4siTuM4D9pKtqUsVeC1N1ix9HJZe5Zev30J0YS3b94H62KqfwWcpJ9Mjfn1tYXzYn9iQ1_4rp1b0VGQZkQsGKo2jjuZCDKoaZNC5G3WlQoxTrIs7XhdBEbVaNxOiehPuMHRYpeSXgNdfXnM07SQWZRJVErUtaCta9KOPMdRaRPtPCK79MFSHZTqtXdUNNp597eonNP9hIcDe3-1-sEu1adW9k5GcM5jHhwEqkPAH1CmAbQ">