From 04d960af0b05582bf129c5d0fd43bd6b451c7657 Mon Sep 17 00:00:00 2001 From: Jannik Beyerstedt Date: Fri, 12 Nov 2021 13:32:35 +0100 Subject: [PATCH] C/Cpp: clang-format specify ctor init list formatting --- cpp/.clang-format | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/.clang-format b/cpp/.clang-format index 8db43f4..8bdb262 100644 --- a/cpp/.clang-format +++ b/cpp/.clang-format @@ -20,6 +20,10 @@ AlignTrailingComments: true IndentWrappedFunctionNames: false AllowShortFunctionsOnASingleLine: Inline +BreakConstructorInitializers: AfterColon +ConstructorInitializerAllOnOneLineOrOnePerLine: true +AllowAllConstructorInitializersOnNextLine: false + SpacesBeforeTrailingComments: 2 FixNamespaceComments: true ReflowComments: false