<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63262>63262</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format: smart enum macros
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
embedded-solutions-art
</td>
</tr>
</table>
<pre>
I use clang-format for cpp17 in my repository I implement macro defines smart enums that allow me to get a string of entities names. I use it as a typical enum declaration format, for example:
```
SMART_ENUM(type,
entity1,
entity2,
entity3
);
```
however, every time when my macro is using is handled as a standard function and changes to this:
`SMART_ENUM(type, entity, entity2, entity3);`
I defined in .clang-format config:
`TypenameMacros: ['SMART_ENUM']`
and I tried to achieve this with the help of 'Macros' from version 17 but without the intended results.
Do you have any advice on how to handle this case?
clang-format off/on comments is not what I want to use:)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0lEGv6jYQhX-NsxmBEueSwCKL-94tEovbRfu6row9SVw5duSZQPPvKzu08KRbhEjAeOY7Z46jiOzgETtx-CYOH4VaeAyxw-mKxqDZUXAL2-BppyIX12DW7gILIWin_LDrQ5wUQx8i6HmuWrAephUizoEsh7jCBew0O5zQM0xKxwAGe-uRgCYVGdAvEwGPikE5F-4wIXCAARkUEEfrBwg9oGfLFgm8mpD2cIFMYRkUgQJeZ6uVy9XAoHYqqoQNG6CQ3zMj_q0SjKjfRfkhynfRlI93_vr75_tvP_785dc_PoU88jqjkN-3FXi-MslaPZe2H-T__7d-NJMnUX_7svEY7njDmDDTdQW2E8J9xOzmZpslWCi5YQlG5Y1Ds2knVt6oaKBfvM6ilTegR-UHpOQlj5ZeJX8l84H6vJPP2_pB_i_t9nl5DNKkme9_ioMOvrfDa8sf64xpcp9JSoKBlDfZvqK04vDxX48k4QIcLZokQenR4g2zFLhbHoFHhBHdnMIhZPsoLFvoY5jghpGSE1UL14XzjrBw3mQ9ozdoICItjmkPW8ePAGtYYFQ3BOVXUOZmNULwMIZ7YthM3xC0IhT1-dWPnxwIfS_kOXjQYUrRpzQ1HxjuKegXuCvPqeZCOYzyVJiuNqf6pArsqubYHA7HpjoVY1cdG2mqqm_q8trX17ItdW1O2Mu3tj30uipsJ0tZl00ly2NdVqe9Lsu-epMGDyfV9y2KtxInZd3eudu0D3EoLNGCXVPLRhZOXdFRPv5SerxDXhRSpqdB7NKe3XUZSLyVzhLTswpbdti9yk5zfZ7qLbdULNF1I_OcMyjPQp4Hy-Ny3eswCXlO9R6X3RzDX6hZyHOmICHPmfKfAAAA__-RSX0j">