Skip to content

Commit

Permalink
add clang-format to constraint the incoming new commits .
Browse files Browse the repository at this point in the history
generally all the new added codes must be follow this style guildline.
the developers are encourage to use various IDE tool to adapt this format style.
Modern IDEs are usually support this .clang-format.
  • Loading branch information
xiaoyifang committed Feb 12, 2022
1 parent 0e888db commit b90aaf9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Format Style Options - Created with Clang Power Tools
---
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: true
BasedOnStyle: LLVM
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BreakConstructorInitializers: AfterColon
ColumnLimit: 160
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth : 2
ContinuationIndentWidth: 2
MaxEmptyLinesToKeep: 2
PointerAlignment: Middle
SpacesInAngles: true
SpacesInParentheses: true
...

0 comments on commit b90aaf9

Please sign in to comment.