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

    <tr>
        <th>Summary</th>
        <td>
            Wrong indentation after clang-format when it exists a label after if
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          Freed-Wu
      </td>
    </tr>
</table>

<pre>
    ```c
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
  if (argc > 2)
    goto usage;
  if (argc < 2)
usage:
    errx(EXIT_FAILURE, "parse error");
  return EXIT_SUCCESS;
}
```

when I `clang-format test.c`, it will be

```c
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
  if (argc > 2)
 goto usage;
  if (argc < 2)
  usage:
    errx(EXIT_FAILURE, "parse error");
  return EXIT_SUCCESS;
}
```

It result in a waring:

> test.c:10 [clang-tidy readability-misleading-indentation] Warning Misleading indentation: statement is indented too deeply
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVF1r4zoQ_TXjlyFBluPafvBDmg8I3Ptye0v3bZGtiTOLIgdp3Db_frGTtimUhX1aFowsc86ZDx2PTIzceaIa8nvI14kZ5NCHehuI7OxpSJrenmu4U5enBbUGtQSdsW_dYAkhW1EI8wNkm6-wKJb7X6GOmxuYveDRsAddjlsTuhb0CtuDCQh6aUL3fKkTdIVQ3F9UiLxH0OVIR8g2qEFXbxBi10uPQzQdQfa1YnWjuBKXH3oK4RV0ufm2-__7drn75_G_zVgUaH0yIdKI9wH0FOIjQSAZgsdJ9fC4Wm0eHt5RKNbXzdvBXj-n9eVAHnc4Hrczvpvt-3A0gkJR5u3I1StkwRd2Dhu6Vf7FPv2eSYh_3qadYKA4OEH2aPDFBPbde0XXNdu8-ZYtU4WQ3188FbZnDGSsadixnGdHjo6MZd_N2FvyYoR7D_kan0zw7Dv8952Bt4xsiVGM0JG8IMcrRhal79ESndw5sXVmq6wyCdVpoZQu00WlkkOd67KwhbVVmhZ5mbb7vEqrhSpKSyozjU241kpnaZqWaqEXuZrvy1ZV2V2Zl6mpSpXDQtHRsJs793yc96FLOMaB6kIXWZU405CL09Wi9e3PPNqQr5NQj7JZM3QRFspxlPgRSFgc1U-h_9wwmr1QwE-jMU0MC9LrGAINTomvTN4nQ3D1QeQUR3v0FvS2YzkMzbztj6C3Y8rra3YK_Q9qBfR2aiSC3k69_AwAAP__1oyBWw">