[PATCH 1/2] clang-format: do not allow short enums on a single line

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 24 05:13:44 PDT 2026


On Wed, 19 Aug 2026 16:39:55 +0200, Ahmad Fatoum wrote:
> clang-format 11 introduced the option "AllowShortEnumsOnASingleLine".
> Set it to "false" in order to avoid short enums of the form:
> 
>     enum my_short_num { green, red };
> 
> With the option set to "false", they will be converted to
> 
> [...]

Applied, thanks!

[1/2] clang-format: do not allow short enums on a single line
      https://git.pengutronix.de/cgit/barebox/commit/?id=60d0f532f5e9 (link may not be stable)
[2/2] clang-format: align consecutive macros
      https://git.pengutronix.de/cgit/barebox/commit/?id=e06de817fd44 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list