format:add clang format file

This commit is contained in:
yifang 2022-02-10 19:52:16 +08:00
parent b728004926
commit a0dc91f86d

15
.clang-format Normal file
View file

@ -0,0 +1,15 @@
# Format Style Options - Created with Clang Power Tools
---
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: true
BasedOnStyle: LLVM
BinPackParameters: false
BinPackArguments: false
BreakBeforeBraces: Allman
BreakConstructorInitializers: AfterColon
ColumnLimit: 160
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth : 2
ContinuationIndentWidth: 2
MaxEmptyLinesToKeep: 2
...