1---
2Language: Cpp
3
4# defaults (if not documented) can be found here:
5#  https://github.com/llvm-mirror/clang/blob/master/lib/Format/Format.cpp
6BasedOnStyle: WebKit
7
8# make it look more Linuxy
9AllowShortFunctionsOnASingleLine: None
10PointerAlignment: Right
11
12# custom brace breaks, but defaults based on "Linux" style.
13BreakBeforeBraces: 'Custom'
14BraceWrapping: {
15    AfterClass: 'true'       # linux default
16    AfterFunction: 'true'    # linux default
17    AfterNamespace: 'false'  # non-linux
18    # everything else is same default as linux style.
19    AfterControlStatement: 'false'
20    AfterEnum: 'false'
21    AfterObjCDeclaration: 'false'
22    AfterStruct: 'false'
23    AfterUnion: 'false'
24    BeforeCatch: 'false'
25    BeforeElse: 'false'
26    IndentBraces: 'false'
27}
28
29AlignTrailingComments: true
30
31# had to re-set this after changing BraceWrapping. WebKit default is 0.
32ColumnLimit: 0
33
34# don't inner (nested) namespaces.
35NamespaceIndentation: None
36
37# modernize
38Standard: Cpp11
39Cpp11BracedListStyle: true
40SpaceBeforeCpp11BracedList: false
41