From: Matthew Malcomson Date: Tue, 3 Dec 2024 22:13:40 +0000 (+0000) Subject: clang-format BraceWrapping.AfterCaseLabel to true X-Git-Tag: basepoints/gcc-16~3564 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=788334199917aaa02f696abb0bca02bf9a460547;p=thirdparty%2Fgcc.git clang-format BraceWrapping.AfterCaseLabel to true This setting seems to better match the indentation that is used in GCC. Adds an exra level of indentation after braces in a case statement. Only manual testing done on the switch statements in c-common.cc:resolve_overloaded_builtin and alias.cc:record_component_aliases. Ok for trunk? contrib/ChangeLog: * clang-format: Set BraceWrapping.AfterCaseLabel. Signed-off-by: Matthew Malcomson --- diff --git a/contrib/clang-format b/contrib/clang-format index f4f708648eb9..95f1455c14db 100644 --- a/contrib/clang-format +++ b/contrib/clang-format @@ -32,6 +32,7 @@ BinPackArguments: true BinPackParameters: true BraceWrapping: AfterClass: true + AfterCaseLabel: true AfterControlStatement: true AfterEnum: true AfterFunction: true