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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] Weird indentation for function that is followed by a marco
        </td>
    </tr>

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

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

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

<pre>
    In libc++ tests, there is a weird indentation by clang-format

```
#define TEST_CONSTEXPR_CXX20 constexpr

void f(){
#ifndef TEST_HAS_NO_EXCEPTIONS
    {using Foo = int;
just_to_show_weird_indentation();
}
#endif
}

TEST_CONSTEXPR_CXX20 void g() {}
```

Our .clang-format files are

https://github.com/llvm/llvm-project/blob/main/libcxx/.clang-format
https://github.com/llvm/llvm-project/blob/main/libcxx/test/.clang-format

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU0tv4yAQ_jXjy6gRxu-DD83D2l6aahNpc7OwwTYVgQpwm_77lZ20TR-XlVZCgwZmvplv4GPOyV4LUUKyhGQdsNEPxpbDKE9SFCRoDH8t7zQq2bRAl0CX6IXzDugK_SCsQOmQ4YuQlqPUXGjPvDQam1dsFdP9TWfskXkgayC3F5uSyzq7NOKik1rgfrPb16vt_W6_OTz8rleHAyXYGu28OD3Za4hnIzl2QHOgBWTLdyDZaS66M9Cv2119v603h9XmYX-3vd-doxARIVuOTuoeK2MQojVK7SG6wDyOztfe1G4wL_VMrL4idqn5FgzZ-r240Fx2X49n-yOxmUN_xps6-sj5Mp_ZbkeLi-uJYieVcMisuA4bvH9yEN0CrYBWvfTD2CxacwRaKfX8tt08WfMoWg-0apRpgFZHJvV0KZv2dAJaLb4_3v-Cnv7PzxUCXka8iAoWiDLMQkKyMM6SYCg5FWmYNzHJSBGTpKBh2kWRYGGXpw3PskCWlNCYRCEJwyQMkwVnWd7yPG2jlBVpziAm4sikWkw9LoztA-ncKMo8TrM4UKwRys0aoPRTX5ROqrDlTK0ZewcxUdJ59wHkpVezfj4lJmv8800UnbHYjbqdHT8wP6mnM0qZF8EnyTA8MtuaYLSq_Od5z4wc0Gom9TcAAP__2jou6g">