[go: up one dir, main page]

blob: b43713fc922db2d28ab8493566327020d66afbad [file] [log] [blame]
Jamie Madill2fdd3da2015-07-20 14:14:541# Defines the ANGLE style for automatic reformatting.
2# https://code.google.com/p/angleproject/wiki/CodingStandard
3# See Clang docs: http://clang.llvm.org/docs/ClangFormatStyleOptions.html
4BasedOnStyle: Chromium
5
6# Allow double brackets such as std::vector<std::vector<int>>.
7Standard: Cpp11
8
9# Indent 4 spaces at a time.
10IndentWidth: 4
11
12# Keep lines under 100 columns long.
13ColumnLimit: 100
14
15# Always break before braces
Jamie Madill7fa88242018-11-26 18:22:5716BreakBeforeBraces: Custom
17BraceWrapping:
Jamie Madill1f9e2a82020-04-28 14:04:0418 AfterCaseLabel: true
Jamie Madill7fa88242018-11-26 18:22:5719 AfterClass: true
20 AfterControlStatement: true
21 AfterEnum: true
22 AfterFunction: true
23 AfterNamespace: true
24 AfterStruct: true
25 AfterUnion: true
26 BeforeCatch: true
27 BeforeElse: true
28 IndentBraces: false
29 SplitEmptyFunction: false
30 SplitEmptyRecord: false
31 SplitEmptyNamespace: false
32
33 # Keeps extern "C" blocks unindented.
34 AfterExternBlock: false
Jamie Madill2fdd3da2015-07-20 14:14:5435
Kimmo Kinnunen8bfcc472025-03-23 10:21:1936InsertBraces: true
37
Jamie Madill2fdd3da2015-07-20 14:14:5438# Indent case labels.
39IndentCaseLabels: true
40
41# Right-align pointers and references
42PointerAlignment: Right
43
44# ANGLE likes to align things as much as possible.
45AlignOperands: true
46AlignConsecutiveAssignments: true
47
48# Use 2 space negative offset for access modifiers
49AccessModifierOffset: -2
50
Jamie Madill2fdd3da2015-07-20 14:14:5451AllowShortCaseLabelsOnASingleLine: false
Jamie Madill2e5797e2015-07-29 20:20:2852
53# Useful for spacing out functions in classes
54KeepEmptyLinesAtTheStartOfBlocks: true
Jamie Madill7fa88242018-11-26 18:22:5755
56# Indent nested PP directives.
57IndentPPDirectives: AfterHash
Jiacheng Luf35f1112019-07-19 15:18:5558
59# Include blocks style
60IncludeBlocks: Preserve