1*8975f5c5SAndroid Build Coastguard Worker# Defines the ANGLE style for automatic reformatting. 2*8975f5c5SAndroid Build Coastguard Worker# https://code.google.com/p/angleproject/wiki/CodingStandard 3*8975f5c5SAndroid Build Coastguard Worker# See Clang docs: http://clang.llvm.org/docs/ClangFormatStyleOptions.html 4*8975f5c5SAndroid Build Coastguard WorkerBasedOnStyle: Chromium 5*8975f5c5SAndroid Build Coastguard Worker 6*8975f5c5SAndroid Build Coastguard Worker# Allow double brackets such as std::vector<std::vector<int>>. 7*8975f5c5SAndroid Build Coastguard WorkerStandard: Cpp11 8*8975f5c5SAndroid Build Coastguard Worker 9*8975f5c5SAndroid Build Coastguard Worker# Indent 4 spaces at a time. 10*8975f5c5SAndroid Build Coastguard WorkerIndentWidth: 4 11*8975f5c5SAndroid Build Coastguard Worker 12*8975f5c5SAndroid Build Coastguard Worker# Keep lines under 100 columns long. 13*8975f5c5SAndroid Build Coastguard WorkerColumnLimit: 100 14*8975f5c5SAndroid Build Coastguard Worker 15*8975f5c5SAndroid Build Coastguard Worker# Always break before braces 16*8975f5c5SAndroid Build Coastguard WorkerBreakBeforeBraces: Custom 17*8975f5c5SAndroid Build Coastguard WorkerBraceWrapping: 18*8975f5c5SAndroid Build Coastguard Worker AfterCaseLabel: true 19*8975f5c5SAndroid Build Coastguard Worker AfterClass: true 20*8975f5c5SAndroid Build Coastguard Worker AfterControlStatement: true 21*8975f5c5SAndroid Build Coastguard Worker AfterEnum: true 22*8975f5c5SAndroid Build Coastguard Worker AfterFunction: true 23*8975f5c5SAndroid Build Coastguard Worker AfterNamespace: true 24*8975f5c5SAndroid Build Coastguard Worker AfterStruct: true 25*8975f5c5SAndroid Build Coastguard Worker AfterUnion: true 26*8975f5c5SAndroid Build Coastguard Worker BeforeCatch: true 27*8975f5c5SAndroid Build Coastguard Worker BeforeElse: true 28*8975f5c5SAndroid Build Coastguard Worker IndentBraces: false 29*8975f5c5SAndroid Build Coastguard Worker SplitEmptyFunction: false 30*8975f5c5SAndroid Build Coastguard Worker SplitEmptyRecord: false 31*8975f5c5SAndroid Build Coastguard Worker SplitEmptyNamespace: false 32*8975f5c5SAndroid Build Coastguard Worker 33*8975f5c5SAndroid Build Coastguard Worker # Keeps extern "C" blocks unindented. 34*8975f5c5SAndroid Build Coastguard Worker AfterExternBlock: false 35*8975f5c5SAndroid Build Coastguard Worker 36*8975f5c5SAndroid Build Coastguard Worker# Indent case labels. 37*8975f5c5SAndroid Build Coastguard WorkerIndentCaseLabels: true 38*8975f5c5SAndroid Build Coastguard Worker 39*8975f5c5SAndroid Build Coastguard Worker# Right-align pointers and references 40*8975f5c5SAndroid Build Coastguard WorkerPointerAlignment: Right 41*8975f5c5SAndroid Build Coastguard Worker 42*8975f5c5SAndroid Build Coastguard Worker# ANGLE likes to align things as much as possible. 43*8975f5c5SAndroid Build Coastguard WorkerAlignOperands: true 44*8975f5c5SAndroid Build Coastguard WorkerAlignConsecutiveAssignments: true 45*8975f5c5SAndroid Build Coastguard Worker 46*8975f5c5SAndroid Build Coastguard Worker# Use 2 space negative offset for access modifiers 47*8975f5c5SAndroid Build Coastguard WorkerAccessModifierOffset: -2 48*8975f5c5SAndroid Build Coastguard Worker 49*8975f5c5SAndroid Build Coastguard WorkerAllowShortCaseLabelsOnASingleLine: false 50*8975f5c5SAndroid Build Coastguard Worker 51*8975f5c5SAndroid Build Coastguard Worker# Useful for spacing out functions in classes 52*8975f5c5SAndroid Build Coastguard WorkerKeepEmptyLinesAtTheStartOfBlocks: true 53*8975f5c5SAndroid Build Coastguard Worker 54*8975f5c5SAndroid Build Coastguard Worker# Indent nested PP directives. 55*8975f5c5SAndroid Build Coastguard WorkerIndentPPDirectives: AfterHash 56*8975f5c5SAndroid Build Coastguard Worker 57*8975f5c5SAndroid Build Coastguard Worker# Include blocks style 58*8975f5c5SAndroid Build Coastguard WorkerIncludeBlocks: Preserve 59