From 67f2af22bff7f9b0bad3da3f015ad86bc4c77447 Mon Sep 17 00:00:00 2001 From: Doug Smith Date: Mon, 26 Feb 2024 17:48:05 -0600 Subject: [PATCH] Fix clang format for newer versions (#102) --- .clang-format | 5 +++-- .run-clang-format | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.clang-format b/.clang-format index 8b3d0c00..2c82a0a3 100644 --- a/.clang-format +++ b/.clang-format @@ -53,7 +53,8 @@ UseTab: Never BreakBeforeBraces: Custom # Control of individual brace wrapping cases -BraceWrapping: { +BraceWrapping: + AfterCaseLabel : 'true' AfterClass: 'true' AfterControlStatement: 'true' AfterEnum : 'true' @@ -64,5 +65,5 @@ BraceWrapping: { BeforeCatch : 'true' BeforeElse : 'true' IndentBraces : 'false' -} + ... diff --git a/.run-clang-format b/.run-clang-format index 540f40e3..15bd5687 100755 --- a/.run-clang-format +++ b/.run-clang-format @@ -1,2 +1,2 @@ #!/bin/bash -find . -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-8 -style=file -i {} \; +find . -type f -regex '.*\.\(cpp\|hpp\|cc\|cxx\|h\|hxx\)' -exec clang-format-14 -style=file -i {} \;