<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/152940>152940</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clang-format] Improving LeftWithLastLine display (AlignEscapedNewlines option)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Julien-Elie
</td>
</tr>
</table>
<pre>
With `AlignEscapedNewlines: LeftWithLastLine`, could it be possible to only do the alignment when the macro is split across more than 2 lines?
Or have another value to do that?
For instance, I would like
```
# define METHOD(name, func, flags, help) \
{(char *) (name), (func), (flags), (char *) (help)}
```
to be kept as-is, and not changed to:
```
# define METHOD(name, func, flags, help) \
{(char *) (name), (func), (flags), (char *) (help)}
```
which looks odd.
On the contrary, I prefer
```
# define TXN_START(label, tid) \
label: \
TXN_START_NORETRY(label, tid)
```
to be formatted as:
```
# define TXN_START(label, tid) \
label: \
TXN_START_NORETRY(label, tid)
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy8VN1u8zYMfRr5hkig0HFsX_jCX5NgHboG6AJsuyoUmbG1ypIhyQny9oN_2q3thm1A8QkBFFk8h-eQAoX3qjZEBUu-sWQbiT401hU_9lqRWey0ouhkq1vxiwoNsA0vtarNzkvRUfVIV60MeRaX8EDnMMQ8CB8elCG24QzvQNpeV6ACnAg66706aYJgwRp9g8pCaAjEQNmSCXBtyIyfWiGdBeXBd1oFGE7eQ2sdQWiEAYQ58Z7x8uCgERcCYWxoyMFF6H5MMvKLMEUxXu6tA2V8EEbSIO4erqM8rV5oihhUTz9eMowBACo6K0Pw0-74w2HLMDOiHcHn3shx16L2w5-GdMcwB5bcMV7CvFj6jWEmG-GAYTnev3LkA4phNjG9nSa-1-MH5JyEpduPankZ7FDlF-oCCL9QoyhhKjA2gGyEqamCYFlcfp3Xj2v2_h1NXxslG9DWvniwVbWcvfHyML0kaU1wwt2mfneOzuT-zf_x18fnn4_l05FhpsWJ9AAOqnrf3ekmLj8V4X0t5vXG-fx4eNodn377zP1PHT1b14oQqALh_0P3vkb9Xxz8f-lRVcRVHuciomKVJussyWKeRU2B52wtY7GKE8rxzCXylYjjmKo0TWWap5EqkGPCsxVHHmeYLVFIpPy0wRw3sZBrtubUCqWXWl_apXV1pLzvqVglmK95NOry4zBDlFqYejGVjyEO480VA25x6mvP1lwrH_yfTEEFPQ7Cd8BkC_dt5-xFmfrTmINK-U6L2_BM_240gu2CsoZhHvVOF00I3dhD3DPc1yo0_WkpbctwP6iYt0Xn7O8kA8P9aM4z3M_-LgX-EQAA___80aGR">