Skip to content

Commit

Permalink
Add .clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
songdongsheng committed Feb 16, 2019
1 parent dd6f8f3 commit a99f7b7
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
# clang-format -style=file -dump-config
# clang-format -style="{BasedOnStyle: Google}" -dump-config
---
BasedOnStyle: Google
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
BraceWrapping:
AfterEnum: true
AfterExternBlock: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
BeforeCatch: true
BeforeElse : true
BreakBeforeBraces: Linux
BreakConstructorInitializers: BeforeComma
BreakAfterJavaFieldAnnotations: true
ColumnLimit: 120
IndentWidth: 4
NamespaceIndentation: All
ObjCBlockIndentWidth: 4
PointerAlignment: Right
SortIncludes: false
SpaceAfterCStyleCast: true
SpacesInContainerLiterals: false
TabWidth: 4
IndentPPDirectives: AfterHash

0 comments on commit a99f7b7

Please sign in to comment.