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

    <tr>
        <th>Summary</th>
        <td>
            Short functions (Inline) within macro, clang-format regression in 16.0.1
        </td>
    </tr>

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

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

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

<pre>
    With a simple `.clang-format`:
```yaml
---
AllowShortFunctionsOnASingleLine: Inline
...

```

clang-tools-extra-0:16.0.1-1.fc39.x86_64:
```cpp
#define create_private_getter_template                                         \
 template <typename AccessTag, typename T, T value> struct PrivateGetter { \
    friend constexpr auto get(AccessTag) { \
      return value; \
    } \
 }
```

clang-tools-extra-0:15.0.7-2.fc37.x86_64:
```cpp
#define create_private_getter_template                                         \
 template <typename AccessTag, typename T, T value> struct PrivateGetter { \
    friend constexpr auto get(AccessTag) { return value; } \
  }
```

With 15.0.7 it seems it doesn't respect the option at all.
With 16.0.1 it works better but I believe in my example it should merge into a single line.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVE1v4zYQ_TXUZSBCIvVhH3TwJnWxQIEW2AA9BhQ1ltilSIEcxfa_Lyh7U6c5tL1XEMDRUPPBN3xPxWhGh9ix-gurnzO10uRD9907WoPKej9cu98NTaAgmnmxCKwpuLbKjfnJh1kRawomD6x4ZsUh2dt7VbO9ufI8vxkHa_352-QDHVenyXgXf3WHb8aNFn8xDpk8wFdnk7X9zzm_J_2Y-tF564O8tzHHCwWVp17Khhe8zEt-0nLPL7vmtak-t6iX5e4RcsCTcQg6oCJ8XYJ5S-uIRBheCefFKkL4tw-rn26Z4T2UySe6LujUjHDQGmN8USMTT_DufUlfL_Cm7IpM_gSRwqoJfrv18vPWCrD2y0N2ADgFg24A7V0kvCwB1EoeRiQmdg919p8jAQLSGtyPin_bZu3zg4O1z_99CjUveJuLNIX2_ym8T-ET7B-Q_geoNyrekAVDEBHnmIzBY3RMtAQB44KagCYEvySagSJQ1vLHDBtDUuDZh-8R-tvB-pXgK_RoDb4hGAfzFfCiNtqnapNf7QAzhjHtkt9EIfEXEm15NnRy2Mu9yrArm52oZFVLkU3d0NayaGTVD1qIvsW-1GU17HaVapvdvsHMdKIQsqhEXVZ1LQUXddMoJcqT7uWprJBVBc7KWG7t28x9GDMT44pdI2TdZFb1aOMmYUI4PMO2yYRIiha6FJP36xhZVVgTKf6VhQxZ7DZVgtMPWQImdnclEns4G5oSFEoHn27Ho_ZBwDFgjAll4-6wZmuw3US0xHTdxZGJ42hoWnuu_czEMRW_L_kS_B-oiYnj1nJk4rgd6c8AAAD__6VAqg8">