Thread (39 messages) 39 messages, 5 authors, 2024-10-25
STALE609d
Revisions (3)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]

[PATCH 3/3] clang-format: align consecutive macro definitions

From: Karthik Nayak <hidden>
Date: 2024-10-09 12:56:15
Subsystem: clang-format file, the rest · Maintainers: Miguel Ojeda, Linus Torvalds

We generally align consecutive macro definitions for better readability.
So let's add the rule in clang-format to follow this.

Signed-off-by: Karthik Nayak <redacted>
---
 .clang-format | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/.clang-format b/.clang-format
index af12a038f7..d76d5f1e6a 100644
--- a/.clang-format
+++ b/.clang-format
@@ -36,6 +36,9 @@ AlignConsecutiveAssignments: false
 # double b = 3.14;
 AlignConsecutiveDeclarations: false

+# Align consecutive macro definitions.
+AlignConsecutiveMacros: true
+
 # Align escaped newlines as far left as possible
 # #define A   \
 #   int aaaa; \
-- 
2.46.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help