aboutsummaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorRichard Qin <richard.qin.x@gmail.com>2026-10-20 19:48:22 +0800
committerRichard Qin <richard.qin.x@gmail.com>2026-10-20 19:48:22 +0800
commit0dbee5806b28a598409be4649e4a9207200bacbf (patch)
treec4f1a7dcd9efa35c96c68e9c7ec284afe2f5fa8f /.clang-format
parent3e8d7d1270ace353cce0080a80021dcc7532f2be (diff)
downloadrcc-project-0dbee5806b28a598409be4649e4a9207200bacbf.tar.gz
rcc-project-0dbee5806b28a598409be4649e4a9207200bacbf.tar.xz
[Dev] Configure build presets and code checks
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format26
1 files changed, 9 insertions, 17 deletions
diff --git a/.clang-format b/.clang-format
index fc4f3fc..dc5d893 100644
--- a/.clang-format
+++ b/.clang-format
@@ -1,20 +1,12 @@
BasedOnStyle: LLVM
-Language: Cpp
-Standard: Latest
-ColumnLimit: 100
-IndentWidth: 2
-ContinuationIndentWidth: 4
-UseTab: Never
-BreakBeforeBraces: Attach
-PointerAlignment: Right
-ReferenceAlignment: Pointer
-DerivePointerAlignment: false
-NamespaceIndentation: None
-FixNamespaceComments: true
-SortIncludes: CaseSensitive
-IncludeBlocks: Regroup
-AllowShortFunctionsOnASingleLine: Empty
+LineEnding: LF
+BreakAfterReturnType: All
+SpaceBeforeParens: Always
+BreakBeforeBraces: Allman
+AllowShortFunctionsOnASingleLine: None
+AllowShortBlocksOnASingleLine: Never
AllowShortIfStatementsOnASingleLine: Never
AllowShortLoopsOnASingleLine: false
-AllowShortCaseLabelsOnASingleLine: false
-LineEnding: LF
+AllowShortLambdasOnASingleLine: None
+AllowShortEnumsOnASingleLine: false
+InsertBraces: true