<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/106418>106418</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] [regression] formatting of macro not stable; oscillates between two ways
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
joelhock
</td>
</tr>
</table>
<pre>
formatting of the `MEMBER` macro oscillates between the two ways shown below each time it is reformatted with 19.1.0-rc3 and also main as of 114ff99e93edd. version 18 consistently chose the first one, fwiw.
empty `.clang-format`
```cpp
struct MyStruct : Base {
int foo;
#define MEMBER(NAME) \
NAME { "" }
MEMBER(bar);
};
struct MyStruct : Base {
int foo;
#define MEMBER(NAME) NAME{""}
MEMBER(bar);
};
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy0k8-OozgQxp-muJSCsAn_DhxCp3PLHnafwDYFuNfYke00ytuvgPT2ZDSHuYyEMBRVn39l6hMh6NEStVB0UJwTcY-T8-2HIzM59W8iXf9oB-dnEaO2I7oB40QIZXZ9v3bvf0OZ4SyUd-iC0saISAElxYXIbplxcbiIR8AwucWiJOMWJKEmjHom1BF1QE_PLajHRccJWZOyNDt4laOwPQoTHM5CWxRhRWDsOAxNQ01OfZ8ifpIP2llkNSpngw6RbDQPVJMLtGEM2oeIzhLwNxwWvaSQnSE77Xeab_GxNpUqI-x42GmgzH5MWl-3S91ueyREf1cRr49_9gfIT9iJQAhVt2cgahtxcA7y7kWL5z0N2hI-j5HXf52u78AbhOLtq3YNrVoInAPnCNX569P_ZVJ44M23fHX-aas_ArmtVbdzfWP9FtXXMSZ9m_dN3oiEWlbxY13ysiqTqR0qIjkwWTKe10VZZEIODWOir2QtWV4kuuUZP2Y1r1mZM1amsq-UqAqV1QUnGno4ZjQLbVJjPufU-THRIdypZVl5ZHVihCQTtpHn_OWPc76awLdr3UHexwDHzOgQw7dS1NFsdnkpLM4IRedp9BTWUVwDr7bZXWJdxBCFNAR590vPPP2S3L1ppxhvAfIT8Avwy6jjdJepcjPwy8rzXA437z5IReCXrc0A_PLs9LPl_wUAAP__C2Yqiw">