From 962ab8dd787afec2b6fd8524c0e04fdaafcfa11f 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 ebcac082c6a..ea0eac2783a 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: