From f5484bb1b931e18e5d5a6aab8deaecf9e8ba6a96 Mon Sep 17 00:00:00 2001 From: Jim Garlick Date: Thu, 14 Nov 2024 09:35:01 -0800 Subject: [PATCH] clang-format: add AlignConsecutiveMacros Problem: the current clang-format removes alignment of the values of consecutive macro assignments, which makes things less readable. clang-20 adds AlignConsecutiveMacros. Add it so we'll be ready. --- .clang-format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.clang-format b/.clang-format index d7c35517b6a5..b8837ebb527b 100644 --- a/.clang-format +++ b/.clang-format @@ -73,6 +73,9 @@ AllowAllParametersOfDeclarationOnNextLine : false SpaceBeforeSquareBrackets: false IndentPPDirectives: None +# will appear in clang-20 +AlignConsecutiveMacros: true + # # vi:tabstop=4 shiftwidth=4 expandtab ft=yaml #