<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59072>59072</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format is tripped up by non-semicolon-terminated top-level macros
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
schuelermine
</td>
</tr>
</table>
<pre>
## Input files:
bar.h
```c
#define define_bar(baz)\
void bar() {\
baz();\
}
```
foo.c
```c
#include "bar.h"
void foo() {
}
define_bar(foo)
void foam() {
}
```
## Expected output:
foo.c
```c
#include "bar.h"
void foo() {}
define_bar(foo)
void foam() {}
```
## Actual output:
foo.c
```c
#include "bar.h"
void foo() {}
define_bar(foo)
void foam() {}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNU9uO2yAQ_Rr8gmJhjG8PPOw2jdSvqLg5psLG4pJ2-_XFOO0m0VattH0oGoHxYWbOmQFu5QsFuE4GPy1rDHDURnlQPwF0BOg6c-bK6fqjRbuJ6x7XUo16UXBfPqezAPecfQd4AM2H_RRM42K1hDuaIAi65zt4G9lrQ0F9D4Lu-JD-lt5obSl-S08vwkSpIMB414HxrXOmlSLc0LpBXxPn-U5jdhreiMXmx2BZw0PAt5RcO_Hx26pEUBLaGFJPHrrxr-W-W-LfSHoSITLzHwr6dTX_JKpQtGrbvkddT1AhaS2HemBF0MEoKgxbzofRupkFqD0MTq9ramBcIX-Bi10OXs1aWJO-gnKzXtjW32DXg1EXZeDMhLO-iM7QKYQ1v0B8SnbWYYq8FDaROxlz-bkcVme_pFuSttr7mN4sPjUD6nAxUVY3NRpkS9qWk5pLxhJrQXreIYZH1BSGcWU8Bc1zquaivsIcYqtscyw0xQjjqqp6XBGCUClIOzaKEdIzVhGJAEFqZtqUG4_SunPhaKbE49kn0Ggf_CvIvNfnRamcLsVnMUzWUS-mqEyuhSpyfpr5_wCxID0G">