.clang-format and code format script

This commit is contained in:
Yunfan Li
2024-07-29 01:10:46 +08:00
parent c85b8fd02a
commit 59cd0d6bb0
2 changed files with 30 additions and 0 deletions

12
.clang-format Normal file
View File

@@ -0,0 +1,12 @@
BasedOnStyle: google
IndentWidth: 4
TabWidth: 4
ColumnLimit: 120
UseTab: Never
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BreakBeforeBraces: Allman
AccessModifierOffset: -4
DerivePointerAlignment: false
PointerAlignment: Left