2015-07-20 17:14:54 +03:00
|
|
|
# Defines the ANGLE style for automatic reformatting.
|
|
|
|
# https://code.google.com/p/angleproject/wiki/CodingStandard
|
|
|
|
# See Clang docs: http://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
|
|
BasedOnStyle: Chromium
|
|
|
|
|
|
|
|
# Allow double brackets such as std::vector<std::vector<int>>.
|
|
|
|
Standard: Cpp11
|
|
|
|
|
|
|
|
# Indent 4 spaces at a time.
|
|
|
|
IndentWidth: 4
|
|
|
|
|
|
|
|
# Keep lines under 100 columns long.
|
|
|
|
ColumnLimit: 100
|
|
|
|
|
|
|
|
# Always break before braces
|
2018-11-26 21:22:57 +03:00
|
|
|
BreakBeforeBraces: Custom
|
|
|
|
BraceWrapping:
|
2020-04-28 17:04:04 +03:00
|
|
|
AfterCaseLabel: true
|
2018-11-26 21:22:57 +03:00
|
|
|
AfterClass: true
|
|
|
|
AfterControlStatement: true
|
|
|
|
AfterEnum: true
|
|
|
|
AfterFunction: true
|
|
|
|
AfterNamespace: true
|
|
|
|
AfterStruct: true
|
|
|
|
AfterUnion: true
|
|
|
|
BeforeCatch: true
|
|
|
|
BeforeElse: true
|
|
|
|
IndentBraces: false
|
|
|
|
SplitEmptyFunction: false
|
|
|
|
SplitEmptyRecord: false
|
|
|
|
SplitEmptyNamespace: false
|
|
|
|
|
|
|
|
# Keeps extern "C" blocks unindented.
|
|
|
|
AfterExternBlock: false
|
2015-07-20 17:14:54 +03:00
|
|
|
|
|
|
|
# Indent case labels.
|
|
|
|
IndentCaseLabels: true
|
|
|
|
|
|
|
|
# Right-align pointers and references
|
|
|
|
PointerAlignment: Right
|
|
|
|
|
|
|
|
# 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
|
2015-07-29 23:20:28 +03:00
|
|
|
|
|
|
|
# Useful for spacing out functions in classes
|
|
|
|
KeepEmptyLinesAtTheStartOfBlocks: true
|
2018-11-26 21:22:57 +03:00
|
|
|
|
|
|
|
# Indent nested PP directives.
|
|
|
|
IndentPPDirectives: AfterHash
|
2019-07-19 18:18:55 +03:00
|
|
|
|
|
|
|
# Include blocks style
|
|
|
|
IncludeBlocks: Preserve
|