<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/57463>57463</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format - do not align #endif comment
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MaJerle
</td>
</tr>
</table>
<pre>
Original structure as below
```c
typedef struct {
/* ... other fields ... */
#if defined(LWMEM_DEV) && !__DOXYGEN__
lwmem_block_t start_block_first_use; /*!< Value of start block for very first time.
This is used only during validation process and is removed in final use */
#endif /* defined(LWMEM_DEV) && !__DOXYGEN__ */
} lwmem_t;
```
Is formatted to this one
```c
typedef struct lwmem {
/* ... other fields ... */
#if defined(LWMEM_DEV) && !__DOXYGEN__
lwmem_block_t start_block_first_use; /*!< Value of start block for very first time.
This is used only during validation process and is removed in final use */
#endif /* defined(LWMEM_DEV) && !__DOXYGEN__ */
} lwmem_t;
```
Notice alignment of the comment in `#endif` line. Is there a way to keep this comment to stick with #endif and not to be aligned?
```
AlignTrailingComments: true
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJztVE1vnDAQ_TVwGQXxtbAcOGyySdWqSS5R0p6QwQPrxuCVbXa1_75jYLttVKnKJada1sJ4vp7fvKVW_FQ-atGJgUkwVo-NHTUCM1CjVEcv3HrhZvnNwnk3s21Pe-TYLlng5dfzOdDy4jsv3kAQBKDsDjW0AiU30wE5nHuuGSeiBaoiBuRevP76cn97X21vn724oMCMNj2iqto-fvv-6fahqi495LHHvqqlal4rSyiYtovVCm1sNRr0kusFChXxkht4ZnJEUO0cDlM4tErDAfUJpjywosfg0ua962knDNCm9hzUIE_ARy2GDg5MCs6sUAPstWrQGGADd6Eae3WgaDEQBDcIyn1LEw6cmFp4fQ9hfxbKtwtvlrh5M9ffh_3ZOFp6Zi3hsgqsu5Ua8B2CmPr8l8VHyOLf68OE86CsaOgDIkU39DhYxyqNGhrVTyZdxmUsyOkVJCEKgATnFEGZcGQnJ7lXxP2su3MuHRqq_gpHYXfw6_aOrkFN7nrpTFdM7v6KcuPcT5oJatvdzIWNl2yARItvMnwsoyyLijiLwtjnZcKLpGC-FVZi2Ug2dFfznwSugKsJw9T9Am1B7o9aljtr967TNIq7jq4w1gEFkCHl4fy4IhH8wMaSKYwZ0dDLKk-zxN-VbMXXnBVpytuoqNsoKnhW5FGTNk3GVmnuS0ZfbVN6q2tvtfVFGYdxHK6TKMzCdRwH-QrXbZJiXkS8rrPcS0PsiYnANQ6U7nxdThjqsTPklMJYc3EyYxy1eK7PRrtTurxnX1BL9Ce45YT1J8La2mw">