2020-11-16 14:47:43 +08:00
|
|
|
---
|
|
|
|
BasedOnStyle: LLVM
|
|
|
|
|
|
|
|
# Allow double brackets such as std::vector<std::vector<int>>.
|
|
|
|
Standard: Cpp11
|
|
|
|
|
|
|
|
SortIncludes: false
|
|
|
|
|
|
|
|
# Keep lines under 160 columns long.
|
|
|
|
ColumnLimit: 160
|
|
|
|
|
|
|
|
# Always break before braces
|
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BraceWrapping:
|
|
|
|
AfterClass: false
|
|
|
|
AfterControlStatement: true
|
|
|
|
AfterEnum: true
|
|
|
|
AfterFunction: true
|
|
|
|
AfterNamespace: true
|
|
|
|
AfterStruct: false
|
|
|
|
AfterUnion: false
|
|
|
|
BeforeCatch: true
|
|
|
|
BeforeElse: true
|
|
|
|
IndentBraces: false
|
|
|
|
SplitEmptyFunction: false
|
|
|
|
SplitEmptyRecord: false
|
|
|
|
SplitEmptyNamespace: false
|
|
|
|
|
|
|
|
# Keeps extern "C" blocks unindented.
|
|
|
|
AfterExternBlock: false
|
|
|
|
|
|
|
|
# Indent case labels.
|
|
|
|
IndentCaseLabels: true
|
|
|
|
|
|
|
|
# Right-align pointers and references
|
|
|
|
PointerAlignment: Left
|
|
|
|
|
|
|
|
# ANGLE likes to align things as much as possible.
|
|
|
|
AlignOperands: true
|
|
|
|
AlignConsecutiveAssignments: true
|
|
|
|
|
|
|
|
# Use 2 space negative offset for access modifiers
|
|
|
|
AccessModifierOffset: -2
|
|
|
|
|
|
|
|
# TODO(jmadill): Decide if we want this on. Doesn't have an "all or none" mode.
|
|
|
|
AllowShortCaseLabelsOnASingleLine: false
|
|
|
|
|
|
|
|
# Useful for spacing out functions in classes
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
|
|
|
|
|
|
|
# Indent nested PP directives.
|
|
|
|
IndentPPDirectives: AfterHash
|
2021-08-31 21:13:10 +08:00
|
|
|
|
|
|
|
AlwaysBreakTemplateDeclarations: Yes
|