From 2a30a0d58e31a6142a6077e7bd9da85d53e7a329 Mon Sep 17 00:00:00 2001 From: uniboi <64006268+uniboi@users.noreply.github.com> Date: Thu, 7 Dec 2023 21:17:50 +0100 Subject: Add clang-format config to pack constructor initializers (#608) The setting will set each initializer in a new line if all of them don't fit in one line --- .clang-format | 2 ++ .github/workflows/ci.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 0c08cabd..cb98dfc0 100644 --- a/.clang-format +++ b/.clang-format @@ -34,3 +34,5 @@ IndentExternBlock: Indent PointerAlignment: Left SortIncludes: false NamespaceIndentation: All +PackConstructorInitializers: NextLine +BreakConstructorInitializersBeforeComma: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b4008843..e4aa37aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,5 +46,5 @@ jobs: source: 'NorthstarDLL NorthstarLauncher' exclude: 'NorthstarDLL/include loader_launcher_proxy loader_wsock32_proxy' extensions: 'h,cpp' - clangFormatVersion: 13 + clangFormatVersion: 16 style: file -- cgit v1.2.3