Skip to content

Commit

Permalink
clang-format: add AlignConsecutiveMacros
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garlick committed Nov 14, 2024
1 parent 8db230f commit f5484bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -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
#

0 comments on commit f5484bb

Please sign in to comment.