aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruniboi <64006268+uniboi@users.noreply.github.com>2023-12-07 21:17:50 +0100
committerGitHub <noreply@github.com>2023-12-07 21:17:50 +0100
commit2a30a0d58e31a6142a6077e7bd9da85d53e7a329 (patch)
tree09c37d24991ba4a4b5dee9510a0e19350b4b4964
parentad1b6ae61b4f1d9728fc088106ae508b2a23245f (diff)
downloadNorthstarLauncher-2a30a0d58e31a6142a6077e7bd9da85d53e7a329.tar.gz
NorthstarLauncher-2a30a0d58e31a6142a6077e7bd9da85d53e7a329.zip
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
-rw-r--r--.clang-format2
-rw-r--r--.github/workflows/ci.yml2
2 files changed, 3 insertions, 1 deletions
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