2 # Typical usage is to apply this to the lines you've modified in a local
3 # change. Stage your changes with "git add" and then run:
5 # You can optionally use the "--" file filter to restrict formatting to certain
6 # files or directories. The tool will display the list of files that were
7 # modified. These have been modified without being staged. You can review the
8 # modifications using "git diff".
11 # BasedOnStyle: Google
12 AccessModifierOffset: -4
13 AlignAfterOpenBracket: Align
14 AlignConsecutiveAssignments: false
15 AlignConsecutiveDeclarations: false
16 AlignEscapedNewlinesLeft: true
18 AlignTrailingComments: true
19 AllowAllParametersOfDeclarationOnNextLine: true
20 AllowShortBlocksOnASingleLine: false
21 AllowShortCaseLabelsOnASingleLine: false
22 AllowShortFunctionsOnASingleLine: All
23 AllowShortIfStatementsOnASingleLine: true
24 AllowShortLoopsOnASingleLine: true
25 AlwaysBreakAfterDefinitionReturnType: None
26 AlwaysBreakAfterReturnType: None
27 AlwaysBreakBeforeMultilineStrings: true
28 AlwaysBreakTemplateDeclarations: true
29 BinPackArguments: true
30 BinPackParameters: true
33 AfterControlStatement: false
37 AfterObjCDeclaration: false
43 BreakBeforeBinaryOperators: None
44 BreakBeforeBraces: Custom
45 BreakBeforeTernaryOperators: true
46 BreakConstructorInitializersBeforeComma: true
47 BreakAfterJavaFieldAnnotations: false
48 BreakStringLiterals: true
50 CommentPragmas: '^ IWYU pragma:'
51 ConstructorInitializerAllOnOneLineOrOnePerLine: true
52 ConstructorInitializerIndentWidth: 8
53 ContinuationIndentWidth: 8
54 Cpp11BracedListStyle: true
55 DerivePointerAlignment: false
57 ExperimentalAutoDetectBinPacking: true
58 ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
66 IncludeIsMainRegex: '([-_](test|unittest))?$'
67 IndentCaseLabels: true
69 IndentWrappedFunctionNames: false
70 JavaScriptQuotes: Leave
71 JavaScriptWrapImports: true
72 KeepEmptyLinesAtTheStartOfBlocks: false
73 MacroBlockBegin: 'SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START'
74 MacroBlockEnd: 'SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END'
75 MaxEmptyLinesToKeep: 1
76 NamespaceIndentation: None
77 ObjCBlockIndentWidth: 2
78 ObjCSpaceAfterProperty: false
79 ObjCSpaceBeforeProtocolList: false
80 PenaltyBreakBeforeFirstCallParameter: 1
81 PenaltyBreakComment: 300
82 PenaltyBreakFirstLessLess: 120
83 PenaltyBreakString: 1000
84 PenaltyExcessCharacter: 1000000
85 PenaltyReturnTypeOnItsOwnLine: 200
86 PointerAlignment: Left
89 SpaceAfterCStyleCast: false
90 SpaceAfterTemplateKeyword: true
91 SpaceBeforeAssignmentOperators: true
92 SpaceBeforeParens: ControlStatements
93 SpaceInEmptyParentheses: false
94 SpacesBeforeTrailingComments: 2
96 SpacesInContainerLiterals: true
97 SpacesInCStyleCastParentheses: false
98 SpacesInParentheses: false
99 SpacesInSquareBrackets: false