Skip to content

Commit 7e785b8

Browse files
KarthikNayakttaylorr
authored andcommitted
clang-format: align consecutive macro definitions
We generally align consecutive macro definitions for better readability: #define OUTPUT_ANNOTATE_COMPAT (1U<<0) #define OUTPUT_LONG_OBJECT_NAME (1U<<1) #define OUTPUT_RAW_TIMESTAMP (1U<<2) #define OUTPUT_PORCELAIN (1U<<3) over #define OUTPUT_ANNOTATE_COMPAT (1U<<0) #define OUTPUT_LONG_OBJECT_NAME (1U<<1) #define OUTPUT_RAW_TIMESTAMP (1U<<2) #define OUTPUT_PORCELAIN (1U<<3) So let's add the rule in clang-format to follow this. Signed-off-by: Karthik Nayak <[email protected]> Signed-off-by: Taylor Blau <[email protected]>
1 parent 5e9fa0f commit 7e785b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.clang-format

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ AlignConsecutiveAssignments: false
3232
# double b = 3.14;
3333
AlignConsecutiveDeclarations: false
3434

35+
# Align consecutive macro definitions.
36+
AlignConsecutiveMacros: true
37+
3538
# Align escaped newlines as far left as possible
3639
# #define A \
3740
# int aaaa; \

0 commit comments

Comments
 (0)