<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54901>54901</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format incorrectly expands short method to be multiple lines in presence of macros
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
aeubanks
</td>
</tr>
</table>
<pre>
```
$ cat .clang-format
AllowShortFunctionsOnASingleLine: Inline
$ cat a.h
struct A {
#ifdef A
void f() { a(); }
#endif
};
$ clang-format
struct A {
#ifdef A
void f() {
a();
}
#endif
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJydUcGO2yAQ_Rp8Ga1FsJ01Bw6OopUqVephvwDDYLPFYAHedv--ONm0iXqpKo3EvDfMzOMxBv0hyJF-Bj0TOhDWgpIZauWkn55MiIvM19LgXPjxOoeYXzavsg0-ffPDq_WTw6_WI2kG-OLdnj2MkvV8JVKOm8owAHk-3a401mg0MFwxwHuwGgxhPWF8vwfympPmVOD5dxt6bc0nKnRzutv5l_L_WXzj4U7BjfsXIY-2Vlo0mjdcVtlmh-JeI1ivQoyosvsA_LlKrxOk3WdYMM9BQw4wIiyby3Z1CLvFqXTBGjGhVwjBwCJVDKnaohNzzmsqv0HYS4nJ5nkbaxWWApx7vx1PawxvZWmBNqUNU0m6ltNDNQvdP8u2NWPLO-S840YemW7NYTz0B8pbrJwc0SVBuhNh7MFwxkh3rqxglDHaHhpG956ad8z0XElK5XjUx560FBdpXb1LqUOcqiguqsZtSqXobMrpT1GmZCePeNlY5sutGBOFxG2U_nuqLi8QF_m_ABdM1nM">