Skip to content

Commit

Permalink
import
Browse files Browse the repository at this point in the history
  • Loading branch information
weyrick committed Feb 20, 2020
0 parents commit 725c4b8
Show file tree
Hide file tree
Showing 62 changed files with 58,321 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
Language: Cpp

# defaults (if not documented) can be found here:
# https://github.com/llvm-mirror/clang/blob/master/lib/Format/Format.cpp
BasedOnStyle: WebKit

# make it look more Linuxy
AllowShortFunctionsOnASingleLine: None
PointerAlignment: Right

# custom brace breaks, but defaults based on "Linux" style.
BreakBeforeBraces: 'Custom'
BraceWrapping: {
AfterClass: 'true' # linux default
AfterFunction: 'true' # linux default
AfterNamespace: 'false' # non-linux
# everything else is same default as linux style.
AfterControlStatement: 'false'
AfterEnum: 'false'
AfterObjCDeclaration: 'false'
AfterStruct: 'false'
AfterUnion: 'false'
BeforeCatch: 'false'
BeforeElse: 'false'
IndentBraces: 'false'
}

AlignTrailingComments: true

# had to re-set this after changing BraceWrapping. WebKit default is 0.
ColumnLimit: 0

# don't inner (nested) namespaces.
NamespaceIndentation: None

# modernize
Standard: Cpp11
Cpp11BracedListStyle: true
SpaceBeforeCpp11BracedList: false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea/
cmake-build-*/
cmd/.idea/
Loading

0 comments on commit 725c4b8

Please sign in to comment.