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

    <tr>
        <th>Summary</th>
        <td>
            clang-tidy fails to spot stack re-use
        </td>
    </tr>

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

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

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

<pre>
    I have a simple example here that I am surprised was not spotted by clang-analyzer:
https://godbolt.org/z/39a1nEa4z

Would you expect it to detect something like this? 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxdkN2OnDAMhZ8GbqwZkfDT4SIXu9qutE_Qa0MMZCcQFJvdMk_fwKiqVCmJfeTonC_pgt3NB0z4RYDAbl49Af3Gs04UCWRCgQ_AGXiLa3RMFr6RYQkCvAaRpLsdeo_LeMEF_f6gmJUvWfGWFS-TyMqH0u9pjcF2wcs1xDGpR9pli2r5idXjef15_gqbt7CHLZGs1As4AQlgSQ7BYSaZ3DKCd_eDz6WAd8jJqKa5VWWjfqjcmtK2yTwXJ57Mk06c3WFA5_mwO-CBBfs7RLpsTPkWvfkP2Mm0ddc-zEl4__W3XNYYPhNMko55I05NfWtvdT6ZusamKfpKNb3qSmvRpqalqhoGjdY2uceOPJusfs20XugbTovUZ_Vb7owutFZKVarSbVlcC6JbVw6q7LHVRa2yqqA5veF6cBw_mUdzInXbyGnoHQv_GyKzGxeiMy754yZTiObe4-eQn8HmBP8Dl3Cpvw">