| 1 |
# -- General settings -- |
| 2 |
Language: Cpp |
| 3 |
|
| 4 |
# Merge empty functions in a single line. |
| 5 |
AllowShortFunctionsOnASingleLine: None |
| 6 |
|
| 7 |
# Align pointers and references to the right |
| 8 |
PointerAlignment: Right |
| 9 |
DerivePointerAlignment: false |
| 10 |
|
| 11 |
# Remove space after template keyword |
| 12 |
SpaceAfterTemplateKeyword: false |
| 13 |
|
| 14 |
# Avoid mixing comments with code when code containing comments has been commented |
| 15 |
ReflowComments: false |
| 16 |
|
| 17 |
# Sort options |
| 18 |
SortIncludes: true |
| 19 |
|
| 20 |
# -- Indentation settings -- |
| 21 |
UseTab: Never |
| 22 |
TabWidth: 2 |
| 23 |
IndentWidth: 2 |
| 24 |
IndentCaseLabels: true |
| 25 |
ContinuationIndentWidth: 4 |
| 26 |
|
| 27 |
# Indentation witdh before ':' in constructors and class inheritance lists. |
| 28 |
ConstructorInitializerIndentWidth: 0 |
| 29 |
|
| 30 |
# Enable indentation for [public, private, protected] |
| 31 |
# and takes one space from the general indentation setting. |
| 32 |
AccessModifierOffset: -1 |
| 33 |
|
| 34 |
|
| 35 |
# -- Break settings-- |
| 36 |
BreakBeforeBraces: Custom |
| 37 |
BraceWrapping: |
| 38 |
AfterClass: true |
| 39 |
AfterControlStatement: false |
| 40 |
AfterEnum: false |
| 41 |
AfterFunction: true |
| 42 |
AfterNamespace: false |
| 43 |
AfterStruct: true |
| 44 |
AfterUnion: true |
| 45 |
AfterExternBlock: false |
| 46 |
BeforeCatch: true |
| 47 |
BeforeElse: true |
| 48 |
IndentBraces: false |
| 49 |
SplitEmptyFunction: true |
| 50 |
SplitEmptyRecord: true |
| 51 |
SplitEmptyNamespace: true |
| 52 |
|
| 53 |
# Initializers breaks. |
| 54 |
BreakConstructorInitializers: BeforeComma |
| 55 |
|
| 56 |
# Inheritance breaks. |
| 57 |
BreakInheritanceList: BeforeComma |
| 58 |
#BreakBeforeInheritanceComma: true # Use with clang < 7 |
| 59 |
|
| 60 |
# Template breaks. |
| 61 |
AlwaysBreakTemplateDeclarations: true |
| 62 |
|
| 63 |
# Penalties |
| 64 |
PenaltyBreakAssignment: 30 |
| 65 |
PenaltyBreakBeforeFirstCallParameter: 10 |
| 66 |
PenaltyExcessCharacter: 15 |
| 67 |
|
| 68 |
# Uncoment to reset line breaks |
| 69 |
#ColumnLimit: 500 |
| 70 |
|
| 71 |
... |