summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCYFS <[email protected]>2026-08-04 09:49:59 +0800
committerRbb666 <[email protected]>2026-08-04 11:30:38 +0800
commitcbf75f07a82cce010758090c00e5e4bfd2b04b03 (patch)
tree880b587ad99aa4d26e40fd497314b04e593ee09e
parent9915dc66c197b9df63701bc3cb7837cd78b6f5d9 (diff)
[tools]:Adjust clang-format parameters
-rw-r--r--.clang-format4
1 files 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: