From cbf75f07a82cce010758090c00e5e4bfd2b04b03 Mon Sep 17 00:00:00 2001 From: CYFS <2805686936@qq.com> Date: Tue, 4 Aug 2026 09:49:59 +0800 Subject: [PATCH] [tools]:Adjust clang-format parameters --- .clang-format | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.clang-format b/.clang-format index ebcac082c6..ea0eac2783 100644 --- a/.clang-format +++ b/.clang-format @@ -51,7 +51,7 @@ AllowShortEnumsOnASingleLine: false AllowShortFunctionsOnASingleLine: Inline AllowShortIfStatementsOnASingleLine: false AllowShortLambdasOnASingleLine: All -AllowShortLoopsOnASingleLine: false +AllowShortLoopsOnASingleLine: true AlwaysBreakAfterDefinitionReturnType: None AlwaysBreakAfterReturnType: None AlwaysBreakBeforeMultilineStrings: false @@ -134,7 +134,7 @@ IndentPPDirectives: None IndentRequiresClause: true IndentWidth: 4 IndentWrappedFunctionNames: false -InsertBraces: false +InsertBraces: true InsertNewlineAtEOF: true InsertTrailingCommas: None IntegerLiteralSeparator: