]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
clang-format BraceWrapping.AfterCaseLabel to true
authorMatthew Malcomson <mmalcomson@nvidia.com>
Tue, 3 Dec 2024 22:13:40 +0000 (22:13 +0000)
committerMatthew Malcomson <mmalcomson@nvidia.com>
Fri, 6 Dec 2024 17:09:29 +0000 (17:09 +0000)
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 <mmalcomson@nvidia.com>
contrib/clang-format

index f4f708648eb9b4d4e76cf1e6bb5dc2a4df398786..95f1455c14db52267e24dd39f5fbf1cd618626e5 100644 (file)
@@ -32,6 +32,7 @@ BinPackArguments: true
 BinPackParameters: true
 BraceWrapping:
   AfterClass: true
+  AfterCaseLabel: true
   AfterControlStatement: true
   AfterEnum: true
   AfterFunction: true