1 # 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
6 # Allow double brackets such as std::vector<std::vector<int>>.
9 # Indent 4 spaces at a time.
12 # Keep lines under 100 columns long.
15 # Always break before braces
16 BreakBeforeBraces: Custom
20 AfterControlStatement: true
29 SplitEmptyFunction: false
30 SplitEmptyRecord: false
31 SplitEmptyNamespace: false
33 # Keeps extern "C" blocks unindented.
34 AfterExternBlock: false
37 IndentCaseLabels: true
39 # Right-align pointers and references
40 PointerAlignment: Right
42 # ANGLE likes to align things as much as possible.
44 AlignConsecutiveAssignments: true
46 # Use 2 space negative offset for access modifiers
47 AccessModifierOffset: -2
49 # TODO(jmadill): Decide if we want this on. Doesn't have an "all or none" mode.
50 AllowShortCaseLabelsOnASingleLine: false
52 # Useful for spacing out functions in classes
53 KeepEmptyLinesAtTheStartOfBlocks: true
55 # Indent nested PP directives.
56 IndentPPDirectives: AfterHash
58 # Include blocks style
59 IncludeBlocks: Preserve