Thread (18 messages) flat view 18 messages, 6 authors, 7d ago
COOLING7d

[RFC PATCH 4/4] .clang-format: don't indent "goto" labels

From: Ævar Arnfjörð Bjarmason <hidden>
Date: 2022-07-11 11:43:21
Subsystem: clang-format file, the rest · Maintainers: Miguel Ojeda, Linus Torvalds

This change is a slightly mixed bag, we have a lot of "goto" labels
that are indented by exactly one space.

Before & after this change running "make style-all-diff-apply" will
yield:

	509 files changed, 13042 insertions(+), 12745 deletions(-)
	510 files changed, 13039 insertions(+), 12742 deletions(-)

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
 .clang-format | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/.clang-format b/.clang-format
index 5a106d959be..56d7e8f9def 100644
--- a/.clang-format
+++ b/.clang-format
@@ -148,6 +148,9 @@ SpacesInSquareBrackets: false
 # clang-format 12.
 BitFieldColonSpacing: None
 
+# Do not indent "goto" labels, they should be flushed left.
+IndentGotoLabels: false
+
 # Insert a space after '{' and before '}' in struct initializers
 Cpp11BracedListStyle: false
 
-- 
2.37.0.913.g189dca38629
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help