feat: scaffold C++ template with tooling helpers

This commit is contained in:
2025-09-23 13:34:55 +08:00
parent 3e9993775d
commit 237e7c3138
9 changed files with 197 additions and 0 deletions

33
.clang-format Normal file
View File

@@ -0,0 +1,33 @@
BasedOnStyle: LLVM
Language: Cpp
Standard: c++20
IndentWidth: 4
TabWidth: 4
UseTab: Never
ColumnLimit: 100
AccessModifierOffset: -4
NamespaceIndentation: All
AllowShortFunctionsOnASingleLine: Empty
BreakBeforeBraces: Custom
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterStruct: false
AfterUnion: false
BeforeCatch: true
BeforeElse: true
SplitEmptyFunction: false
SplitEmptyRecord: false
SplitEmptyNamespace: false
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^<.*>$'
Priority: 1
- Regex: '^".*"$'
Priority: 2
SpacesInAngles: false
SpaceBeforeParens: ControlStatements