aboutsummaryrefslogtreecommitdiff
path: root/rcc-legacy/.clang-format
diff options
context:
space:
mode:
authorRichard-Qin-X <richard.qin.001@gmail.com>2026-06-08 16:58:20 +0800
committerRichard-Qin-X <richard.qin.001@gmail.com>2026-06-08 16:58:20 +0800
commit06a63b80effa4793f6c51ba827829655d6caf149 (patch)
treea15450f162cd8d363948143bb86da5a5f8556a0b /rcc-legacy/.clang-format
parent0d626880bb5c6a566c77e2559f50a04c8ce8ea9c (diff)
downloadrcc-project-06a63b80effa4793f6c51ba827829655d6caf149.tar.gz
rcc-project-06a63b80effa4793f6c51ba827829655d6caf149.tar.xz
[legacy] Add build system and project metadata
Diffstat (limited to 'rcc-legacy/.clang-format')
-rw-r--r--rcc-legacy/.clang-format62
1 files changed, 62 insertions, 0 deletions
diff --git a/rcc-legacy/.clang-format b/rcc-legacy/.clang-format
new file mode 100644
index 0000000..73bd832
--- /dev/null
+++ b/rcc-legacy/.clang-format
@@ -0,0 +1,62 @@
+---
+Language: Cpp
+BasedOnStyle: Google
+
+# Indentation
+IndentWidth: 4
+TabWidth: 4
+UseTab: Never
+AccessModifierOffset: -2
+NamespaceIndentation: None
+IndentCaseLabels: true
+
+# Line width
+ColumnLimit: 100
+
+# Braces
+BreakBeforeBraces: Attach
+AllowShortFunctionsOnASingleLine: Inline
+AllowShortIfStatementsOnASingleLine: Never
+AllowShortLoopsOnASingleLine: false
+AllowShortBlocksOnASingleLine: Empty
+
+# Includes
+SortIncludes: CaseSensitive
+IncludeBlocks: Regroup
+IncludeCategories:
+ # Project headers
+ - Regex: '^"rcc/'
+ Priority: 1
+ # System / C++ standard headers
+ - Regex: '^<'
+ Priority: 2
+ # Catch-all
+ - Regex: '.*'
+ Priority: 3
+
+# Alignment
+AlignAfterOpenBracket: Align
+AlignConsecutiveAssignments: false
+AlignConsecutiveDeclarations: false
+AlignOperands: Align
+AlignTrailingComments: true
+
+# Spacing
+SpaceAfterCStyleCast: false
+SpaceAfterTemplateKeyword: true
+SpaceBeforeAssignmentOperators: true
+SpaceBeforeParens: ControlStatements
+SpacesInAngles: Never
+
+# Pointer alignment
+PointerAlignment: Left
+ReferenceAlignment: Left
+DerivePointerAlignment: false
+
+# Other
+ReflowComments: true
+FixNamespaceComments: true
+CompactNamespaces: false
+AllowAllParametersOfDeclarationOnNextLine: true
+BinPackArguments: true
+BinPackParameters: true