From 6a8a25e3682b6ac386365a8797b28443d6ea64ca Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Thu, 21 Dec 2023 11:48:03 -0800 Subject: [PATCH] Update our clang-format config with @gedankenexperimenter's recommended clang-format-15 settings --- .clang-format | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.clang-format b/.clang-format index 54e2033515..fec28fd73b 100644 --- a/.clang-format +++ b/.clang-format @@ -26,11 +26,11 @@ AttributeMacros: - __attribute__((unused)) BinPackArguments: false BinPackParameters: false -# BraceWrapping: -# SplitEmptyFunction: false -# SplitEmptyRecord: true -# SplitEmptyNamespace: true -# BreakBeforeBraces: Custom +BraceWrapping: + SplitEmptyFunction: false + SplitEmptyRecord: true + SplitEmptyNamespace: true +BreakBeforeBraces: Custom ColumnLimit: 0 ConstructorInitializerIndentWidth: 2 ContinuationIndentWidth: 2 @@ -39,9 +39,9 @@ FixNamespaceComments: true IndentCaseLabels: false KeepEmptyLinesAtTheStartOfBlocks: true MaxEmptyLinesToKeep: 2 -# PackConstructorInitializers: CurrentLine +PackConstructorInitializers: NextLine PointerAlignment: Right -# ReferenceAlignment: Right +ReferenceAlignment: Right ReflowComments: false SortIncludes: false SpaceAfterTemplateKeyword: false