2017-09-13 11:30:01 +08:00
|
|
|
---
|
|
|
|
BasedOnStyle: WebKit
|
|
|
|
IndentWidth: 5
|
|
|
|
TabWidth: 5
|
|
|
|
ContinuationIndentWidth: 5
|
|
|
|
UseTab: Always
|
|
|
|
|
|
|
|
# Namespaces
|
|
|
|
NamespaceIndentation: All
|
|
|
|
CompactNamespaces: true
|
|
|
|
FixNamespaceComments: true
|
|
|
|
|
|
|
|
# Overall Alignment
|
|
|
|
ColumnLimit: 0
|
|
|
|
AlignAfterOpenBracket: DontAlign # uses ContinuationIndentWidth for this instead
|
2017-09-13 14:46:56 +08:00
|
|
|
AccessModifierOffset: -5 # do not push public: or private: around
|
2017-09-14 12:35:40 +08:00
|
|
|
#AlignConsecutiveAssignments: true # affects more than what's expected: do not use
|
|
|
|
#AlignConsecutiveDeclarations: true # affects more than what's expected: do not use
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
# Type Alignment
|
|
|
|
DerivePointerAlignment: false
|
|
|
|
PointerAlignment: Left
|
|
|
|
AlwaysBreakTemplateDeclarations: true
|
|
|
|
AlwaysBreakBeforeMultilineStrings: true
|
|
|
|
|
|
|
|
# Comments
|
|
|
|
AlignTrailingComments: true
|
|
|
|
ReflowComments: true
|
|
|
|
|
|
|
|
# Macros
|
|
|
|
AlignEscapedNewlines: Left
|
2017-09-13 14:46:56 +08:00
|
|
|
IndentPPDirectives: None
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
# Functions
|
|
|
|
AllowShortFunctionsOnASingleLine: None
|
|
|
|
AlwaysBreakAfterReturnType: None
|
2017-09-13 14:46:56 +08:00
|
|
|
BreakConstructorInitializers: BeforeComma
|
|
|
|
ConstructorInitializerIndentWidth: 0
|
|
|
|
ConstructorInitializerAllOnOneLineOrOnePerLine: true
|
2017-09-14 12:35:40 +08:00
|
|
|
BinPackArguments: true
|
|
|
|
BinPackParameters: true
|
2017-09-13 14:46:56 +08:00
|
|
|
|
|
|
|
# Classes
|
|
|
|
BreakBeforeInheritanceComma: false
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
# Braces
|
2017-09-13 14:46:56 +08:00
|
|
|
Cpp11BracedListStyle: false
|
2017-09-13 11:30:01 +08:00
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BraceWrapping:
|
|
|
|
AfterEnum: false
|
|
|
|
AfterStruct: false
|
|
|
|
AfterControlStatement: false
|
|
|
|
AfterClass: false
|
|
|
|
AfterNamespace: false
|
|
|
|
AfterStruct: false
|
|
|
|
AfterUnion: false
|
2017-09-13 14:46:56 +08:00
|
|
|
BeforeElse: true
|
|
|
|
BeforeCatch: true
|
2017-09-13 11:30:01 +08:00
|
|
|
IndentBraces: false
|
|
|
|
SplitEmptyFunction: false
|
|
|
|
SplitEmptyRecord: false
|
|
|
|
SplitEmptyNamespace: true
|
|
|
|
|
|
|
|
# Control Statements
|
|
|
|
AllowShortIfStatementsOnASingleLine: false
|
|
|
|
AllowShortLoopsOnASingleLine: false
|
|
|
|
AllowShortCaseLabelsOnASingleLine: false
|
2017-09-13 14:46:56 +08:00
|
|
|
IndentCaseLabels: false
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
# Spaces
|
|
|
|
SpaceAfterCStyleCast: false
|
|
|
|
SpacesInCStyleCastParentheses: false
|
|
|
|
SpaceAfterTemplateKeyword: true
|
|
|
|
SpaceBeforeAssignmentOperators: true
|
|
|
|
SpaceBeforeParens: ControlStatements
|
|
|
|
SpaceInEmptyParentheses: false
|
|
|
|
SpacesInAngles: false
|
|
|
|
SpacesInParentheses: false
|
|
|
|
SpacesInSquareBrackets: false
|
2017-09-24 08:26:03 +08:00
|
|
|
MaxEmptyLinesToKeep: 3
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
# OCD
|
|
|
|
SortUsingDeclarations: true
|
2017-09-14 12:35:40 +08:00
|
|
|
SortIncludes: false
|
2017-09-13 11:30:01 +08:00
|
|
|
|
|
|
|
---
|
|
|
|
Language: Cpp
|
2017-09-13 14:46:56 +08:00
|
|
|
Standard: Cpp11
|