Init commit.

This commit is contained in:
sleepwithoutbz
2025-09-16 00:33:46 +08:00
commit 2fd08bfafc
12 changed files with 876 additions and 0 deletions

37
.clang-format Normal file
View File

@@ -0,0 +1,37 @@
BasedOnStyle: LLVM
# 语言: None, Cpp, Java, JavaScript, ObjC, Proto, TableGen, TextProto
Language: Cpp
# tab宽度
TabWidth: 4
# 使用tab字符: Never, ForIndentation, ForContinuationAndIndentation, Always
UseTab: Never
# 每行字符的限制0表示没有限制
ColumnLimit: 100
# 访问说明符(public、private等)的偏移
AccessModifierOffset: -4
# 缩进case标签
IndentCaseLabels: false
# 要使用的预处理器指令缩进样式
IndentPPDirectives: AfterHash
# 缩进宽度
IndentWidth: 4
# 函数返回类型换行时,缩进函数声明或函数定义的函数名
IndentWrappedFunctionNames: false
# 连续赋值时,对齐所有等号
AlignConsecutiveAssignments: true
# 连续声明时,对齐所有声明的变量名
AlignConsecutiveDeclarations: true
# 用于在使用反斜杠换行中对齐反斜杠的选项
AlignEscapedNewlines: Left