From 9173c4d2f14110d554610afbcfbfee6bcc7b36a3 Mon Sep 17 00:00:00 2001 From: skypjack Date: Mon, 26 Jan 2026 09:19:45 +0100 Subject: [PATCH] clang-format: refine config --- .clang-format | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.clang-format b/.clang-format index 4d2e613e1..0d22dc661 100644 --- a/.clang-format +++ b/.clang-format @@ -11,6 +11,7 @@ AllowShortLambdasOnASingleLine: All AllowShortLoopsOnASingleLine: true AlwaysBreakTemplateDeclarations: Yes BreakBeforeBinaryOperators: NonAssignment +BreakBeforeBraces: Attach BreakBeforeConceptDeclarations: Always BreakBeforeTernaryOperators: true ColumnLimit: 0 @@ -30,10 +31,12 @@ IncludeIsMainRegex: "^$" IndentPPDirectives: AfterHash IndentRequiresClause: false IndentWidth: 4 +InsertBraces: true +InsertNewlineAtEOF: true KeepEmptyLinesAtTheStartOfBlocks: false Language: Cpp PointerAlignment: Right -RequiresClausePosition: OwnLine +RequiresClausePosition: OwnLineWithBrace RequiresExpressionIndentation: OuterScope SpaceAfterCStyleCast: false SpaceAfterTemplateKeyword: false