https://gcc.gnu.org/g:788334199917aaa02f696abb0bca02bf9a460547

commit r15-5989-g788334199917aaa02f696abb0bca02bf9a460547
Author: Matthew Malcomson <mmalcom...@nvidia.com>
Date:   Tue Dec 3 22:13:40 2024 +0000

    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 <mmalcom...@nvidia.com>

Diff:
---
 contrib/clang-format | 1 +
 1 file changed, 1 insertion(+)

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

Reply via email to