1cb93a386Sopenharmony_ci---
2cb93a386Sopenharmony_ci# Typical usage is to apply this to the lines you've modified in a local
3cb93a386Sopenharmony_ci# change. Stage your changes with "git add" and then run:
4cb93a386Sopenharmony_ci# $ git clang-format
5cb93a386Sopenharmony_ci# You can optionally use the "--" file filter to restrict formatting to certain
6cb93a386Sopenharmony_ci# files or directories. The tool will display  the list of files that were
7cb93a386Sopenharmony_ci# modified. These have been modified without being staged. You can review the
8cb93a386Sopenharmony_ci# modifications using "git diff".
9cb93a386Sopenharmony_ci#
10cb93a386Sopenharmony_ci# IF YOU UPDATE THE CPP SECTION ALSO UPDATE THE OBJECTIVE-C SECTION. IF YOU
11cb93a386Sopenharmony_ci# KNOW HOW TO SHARE SETTINGS BETWEEN THE TWO YOU'RE A TRUE HERO.
12cb93a386Sopenharmony_ci
13cb93a386Sopenharmony_ciLanguage:        Cpp
14cb93a386Sopenharmony_ci# BasedOnStyle:  Google
15cb93a386Sopenharmony_ciAccessModifierOffset: -4
16cb93a386Sopenharmony_ciAlignAfterOpenBracket: Align
17cb93a386Sopenharmony_ciAlignConsecutiveAssignments: false
18cb93a386Sopenharmony_ciAlignConsecutiveDeclarations: false
19cb93a386Sopenharmony_ciAlignEscapedNewlinesLeft: true
20cb93a386Sopenharmony_ciAlignOperands:   true
21cb93a386Sopenharmony_ciAlignTrailingComments: true
22cb93a386Sopenharmony_ciAllowAllParametersOfDeclarationOnNextLine: true
23cb93a386Sopenharmony_ciAllowShortBlocksOnASingleLine: false
24cb93a386Sopenharmony_ciAllowShortCaseLabelsOnASingleLine: false
25cb93a386Sopenharmony_ciAllowShortFunctionsOnASingleLine: All
26cb93a386Sopenharmony_ciAllowShortIfStatementsOnASingleLine: true
27cb93a386Sopenharmony_ciAllowShortLoopsOnASingleLine: true
28cb93a386Sopenharmony_ciAlwaysBreakAfterDefinitionReturnType: None
29cb93a386Sopenharmony_ciAlwaysBreakAfterReturnType: None
30cb93a386Sopenharmony_ciAlwaysBreakBeforeMultilineStrings: true
31cb93a386Sopenharmony_ciAlwaysBreakTemplateDeclarations: false
32cb93a386Sopenharmony_ciBinPackArguments: false
33cb93a386Sopenharmony_ciBinPackParameters: false
34cb93a386Sopenharmony_ciBraceWrapping:
35cb93a386Sopenharmony_ci  AfterClass:      false
36cb93a386Sopenharmony_ci  AfterControlStatement: false
37cb93a386Sopenharmony_ci  AfterEnum:       false
38cb93a386Sopenharmony_ci  AfterFunction:   false
39cb93a386Sopenharmony_ci  AfterNamespace:  false
40cb93a386Sopenharmony_ci  AfterObjCDeclaration: false
41cb93a386Sopenharmony_ci  AfterStruct:     false
42cb93a386Sopenharmony_ci  AfterUnion:      false
43cb93a386Sopenharmony_ci  BeforeCatch:     false
44cb93a386Sopenharmony_ci  BeforeElse:      false
45cb93a386Sopenharmony_ci  IndentBraces:    false
46cb93a386Sopenharmony_ciBreakBeforeBinaryOperators: None
47cb93a386Sopenharmony_ciBreakBeforeBraces: Custom
48cb93a386Sopenharmony_ciBreakBeforeTernaryOperators: true
49cb93a386Sopenharmony_ciBreakConstructorInitializersBeforeComma: true
50cb93a386Sopenharmony_ciBreakAfterJavaFieldAnnotations: false
51cb93a386Sopenharmony_ciBreakStringLiterals: true
52cb93a386Sopenharmony_ciColumnLimit:     100
53cb93a386Sopenharmony_ciCommentPragmas:  '^ IWYU pragma:'
54cb93a386Sopenharmony_ciConstructorInitializerAllOnOneLineOrOnePerLine: true
55cb93a386Sopenharmony_ciConstructorInitializerIndentWidth: 8
56cb93a386Sopenharmony_ciContinuationIndentWidth: 8
57cb93a386Sopenharmony_ciCpp11BracedListStyle: true
58cb93a386Sopenharmony_ciDerivePointerAlignment: false
59cb93a386Sopenharmony_ciDisableFormat:   false
60cb93a386Sopenharmony_ciExperimentalAutoDetectBinPacking: false
61cb93a386Sopenharmony_ciForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
62cb93a386Sopenharmony_ciIncludeCategories:
63cb93a386Sopenharmony_ci  - Regex:           '^<.*\.h>'
64cb93a386Sopenharmony_ci    Priority:        1
65cb93a386Sopenharmony_ci  - Regex:           '^<.*'
66cb93a386Sopenharmony_ci    Priority:        2
67cb93a386Sopenharmony_ci  - Regex:           '.*'
68cb93a386Sopenharmony_ci    Priority:        3
69cb93a386Sopenharmony_ciIncludeIsMainRegex: '([-_](test|unittest))?$'
70cb93a386Sopenharmony_ciIndentCaseLabels: true
71cb93a386Sopenharmony_ciIndentWidth:     4
72cb93a386Sopenharmony_ciIndentWrappedFunctionNames: false
73cb93a386Sopenharmony_ciJavaScriptQuotes: Leave
74cb93a386Sopenharmony_ciJavaScriptWrapImports: true
75cb93a386Sopenharmony_ciKeepEmptyLinesAtTheStartOfBlocks: false
76cb93a386Sopenharmony_ciMaxEmptyLinesToKeep: 1
77cb93a386Sopenharmony_ciNamespaceIndentation: None
78cb93a386Sopenharmony_ciObjCBlockIndentWidth: 2
79cb93a386Sopenharmony_ciObjCSpaceAfterProperty: false
80cb93a386Sopenharmony_ciObjCSpaceBeforeProtocolList: false
81cb93a386Sopenharmony_ciPenaltyBreakBeforeFirstCallParameter: 1
82cb93a386Sopenharmony_ciPenaltyBreakComment: 300
83cb93a386Sopenharmony_ciPenaltyBreakFirstLessLess: 120
84cb93a386Sopenharmony_ciPenaltyBreakString: 1000
85cb93a386Sopenharmony_ciPenaltyExcessCharacter: 1000000
86cb93a386Sopenharmony_ciPenaltyReturnTypeOnItsOwnLine: 200
87cb93a386Sopenharmony_ciPointerAlignment: Left
88cb93a386Sopenharmony_ciReflowComments:  true
89cb93a386Sopenharmony_ciSortIncludes:    true
90cb93a386Sopenharmony_ciSpaceAfterCStyleCast: false
91cb93a386Sopenharmony_ciSpaceAfterTemplateKeyword: true
92cb93a386Sopenharmony_ciSpaceBeforeAssignmentOperators: true
93cb93a386Sopenharmony_ciSpaceBeforeParens: ControlStatements
94cb93a386Sopenharmony_ciSpaceInEmptyParentheses: false
95cb93a386Sopenharmony_ciSpacesBeforeTrailingComments: 2
96cb93a386Sopenharmony_ciSpacesInAngles:  false
97cb93a386Sopenharmony_ciSpacesInContainerLiterals: true
98cb93a386Sopenharmony_ciSpacesInCStyleCastParentheses: false
99cb93a386Sopenharmony_ciSpacesInParentheses: false
100cb93a386Sopenharmony_ciSpacesInSquareBrackets: false
101cb93a386Sopenharmony_ciStandard:        Auto
102cb93a386Sopenharmony_ciTabWidth:        4
103cb93a386Sopenharmony_ciUseTab:          Never
104cb93a386Sopenharmony_ci---
105cb93a386Sopenharmony_ciLanguage:        ObjC
106cb93a386Sopenharmony_ciAccessModifierOffset: -4
107cb93a386Sopenharmony_ciAlignAfterOpenBracket: Align
108cb93a386Sopenharmony_ciAlignConsecutiveAssignments: false
109cb93a386Sopenharmony_ciAlignConsecutiveDeclarations: false
110cb93a386Sopenharmony_ciAlignEscapedNewlinesLeft: true
111cb93a386Sopenharmony_ciAlignOperands:   true
112cb93a386Sopenharmony_ciAlignTrailingComments: true
113cb93a386Sopenharmony_ciAllowAllParametersOfDeclarationOnNextLine: true
114cb93a386Sopenharmony_ciAllowShortBlocksOnASingleLine: false
115cb93a386Sopenharmony_ciAllowShortCaseLabelsOnASingleLine: false
116cb93a386Sopenharmony_ciAllowShortFunctionsOnASingleLine: All
117cb93a386Sopenharmony_ciAllowShortIfStatementsOnASingleLine: true
118cb93a386Sopenharmony_ciAllowShortLoopsOnASingleLine: true
119cb93a386Sopenharmony_ciAlwaysBreakAfterDefinitionReturnType: None
120cb93a386Sopenharmony_ciAlwaysBreakAfterReturnType: None
121cb93a386Sopenharmony_ciAlwaysBreakBeforeMultilineStrings: true
122cb93a386Sopenharmony_ciAlwaysBreakTemplateDeclarations: false
123cb93a386Sopenharmony_ciBinPackArguments: false
124cb93a386Sopenharmony_ciBinPackParameters: false
125cb93a386Sopenharmony_ciBraceWrapping:
126cb93a386Sopenharmony_ci  AfterClass:      false
127cb93a386Sopenharmony_ci  AfterControlStatement: false
128cb93a386Sopenharmony_ci  AfterEnum:       false
129cb93a386Sopenharmony_ci  AfterFunction:   false
130cb93a386Sopenharmony_ci  AfterNamespace:  false
131cb93a386Sopenharmony_ci  AfterObjCDeclaration: false
132cb93a386Sopenharmony_ci  AfterStruct:     false
133cb93a386Sopenharmony_ci  AfterUnion:      false
134cb93a386Sopenharmony_ci  BeforeCatch:     false
135cb93a386Sopenharmony_ci  BeforeElse:      false
136cb93a386Sopenharmony_ci  IndentBraces:    false
137cb93a386Sopenharmony_ciBreakBeforeBinaryOperators: None
138cb93a386Sopenharmony_ciBreakBeforeBraces: Custom
139cb93a386Sopenharmony_ciBreakBeforeTernaryOperators: true
140cb93a386Sopenharmony_ciBreakConstructorInitializersBeforeComma: true
141cb93a386Sopenharmony_ciBreakAfterJavaFieldAnnotations: false
142cb93a386Sopenharmony_ciBreakStringLiterals: true
143cb93a386Sopenharmony_ciColumnLimit:     100
144cb93a386Sopenharmony_ciCommentPragmas:  '^ IWYU pragma:'
145cb93a386Sopenharmony_ciConstructorInitializerAllOnOneLineOrOnePerLine: true
146cb93a386Sopenharmony_ciConstructorInitializerIndentWidth: 8
147cb93a386Sopenharmony_ciContinuationIndentWidth: 8
148cb93a386Sopenharmony_ciCpp11BracedListStyle: true
149cb93a386Sopenharmony_ciDerivePointerAlignment: false
150cb93a386Sopenharmony_ciDisableFormat:   false
151cb93a386Sopenharmony_ciExperimentalAutoDetectBinPacking: false
152cb93a386Sopenharmony_ciForEachMacros:   [ foreach, Q_FOREACH, BOOST_FOREACH ]
153cb93a386Sopenharmony_ciIncludeCategories:
154cb93a386Sopenharmony_ci  - Regex:           '^<.*\.h>'
155cb93a386Sopenharmony_ci    Priority:        1
156cb93a386Sopenharmony_ci  - Regex:           '^<.*'
157cb93a386Sopenharmony_ci    Priority:        2
158cb93a386Sopenharmony_ci  - Regex:           '.*'
159cb93a386Sopenharmony_ci    Priority:        3
160cb93a386Sopenharmony_ciIncludeIsMainRegex: '([-_](test|unittest))?$'
161cb93a386Sopenharmony_ciIndentCaseLabels: true
162cb93a386Sopenharmony_ciIndentWidth:     4
163cb93a386Sopenharmony_ciIndentWrappedFunctionNames: false
164cb93a386Sopenharmony_ciJavaScriptQuotes: Leave
165cb93a386Sopenharmony_ciJavaScriptWrapImports: true
166cb93a386Sopenharmony_ciKeepEmptyLinesAtTheStartOfBlocks: false
167cb93a386Sopenharmony_ciMaxEmptyLinesToKeep: 1
168cb93a386Sopenharmony_ciNamespaceIndentation: None
169cb93a386Sopenharmony_ciObjCBlockIndentWidth: 2
170cb93a386Sopenharmony_ciObjCSpaceAfterProperty: false
171cb93a386Sopenharmony_ciObjCSpaceBeforeProtocolList: false
172cb93a386Sopenharmony_ciPenaltyBreakBeforeFirstCallParameter: 1
173cb93a386Sopenharmony_ciPenaltyBreakComment: 300
174cb93a386Sopenharmony_ciPenaltyBreakFirstLessLess: 120
175cb93a386Sopenharmony_ciPenaltyBreakString: 1000
176cb93a386Sopenharmony_ciPenaltyExcessCharacter: 1000000
177cb93a386Sopenharmony_ciPenaltyReturnTypeOnItsOwnLine: 200
178cb93a386Sopenharmony_ciPointerAlignment: Left
179cb93a386Sopenharmony_ciReflowComments:  true
180cb93a386Sopenharmony_ciSortIncludes:    true
181cb93a386Sopenharmony_ciSpaceAfterCStyleCast: false
182cb93a386Sopenharmony_ciSpaceAfterTemplateKeyword: true
183cb93a386Sopenharmony_ciSpaceBeforeAssignmentOperators: true
184cb93a386Sopenharmony_ciSpaceBeforeParens: ControlStatements
185cb93a386Sopenharmony_ciSpaceInEmptyParentheses: false
186cb93a386Sopenharmony_ciSpacesBeforeTrailingComments: 2
187cb93a386Sopenharmony_ciSpacesInAngles:  false
188cb93a386Sopenharmony_ciSpacesInContainerLiterals: true
189cb93a386Sopenharmony_ciSpacesInCStyleCastParentheses: false
190cb93a386Sopenharmony_ciSpacesInParentheses: false
191cb93a386Sopenharmony_ciSpacesInSquareBrackets: false
192cb93a386Sopenharmony_ciStandard:        Auto
193cb93a386Sopenharmony_ciTabWidth:        4
194cb93a386Sopenharmony_ciUseTab:          Never
195cb93a386Sopenharmony_ci...
196cb93a386Sopenharmony_ci
197