mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
clang-format: tweak to match existing code a little better
"clang-format -i src/view.c" before: 1 file changed, 204 insertions(+), 169 deletions(-) "clang-format -i src/view.c" after: 1 file changed, 181 insertions(+), 146 deletions(-)
This commit is contained in:
parent
5ce20b2b95
commit
d54051d9c1
1 changed files with 7 additions and 0 deletions
|
|
@ -12,14 +12,21 @@ UseTab: Always
|
||||||
IndentWidth: 8
|
IndentWidth: 8
|
||||||
ContinuationIndentWidth: 8
|
ContinuationIndentWidth: 8
|
||||||
AlignAfterOpenBracket: DontAlign
|
AlignAfterOpenBracket: DontAlign
|
||||||
|
AlignOperands: false
|
||||||
AlwaysBreakAfterDefinitionReturnType: true
|
AlwaysBreakAfterDefinitionReturnType: true
|
||||||
BreakBeforeBinaryOperators: NonAssignment
|
BreakBeforeBinaryOperators: NonAssignment
|
||||||
BreakBeforeBraces: Linux
|
BreakBeforeBraces: Linux
|
||||||
IndentCaseLabels: false
|
IndentCaseLabels: false
|
||||||
|
PenaltyBreakOpenParenthesis: 100
|
||||||
|
PenaltyReturnTypeOnItsOwnLine: 500
|
||||||
SpaceBeforeParens: ControlStatementsExceptControlMacros
|
SpaceBeforeParens: ControlStatementsExceptControlMacros
|
||||||
ForEachMacros: ['for_each_view',
|
ForEachMacros: ['for_each_view',
|
||||||
|
'for_each_view_reverse',
|
||||||
'wl_array_for_each',
|
'wl_array_for_each',
|
||||||
'wl_list_for_each',
|
'wl_list_for_each',
|
||||||
'wl_list_for_each_reverse',
|
'wl_list_for_each_reverse',
|
||||||
'wl_list_for_each_reverse_safe',
|
'wl_list_for_each_reverse_safe',
|
||||||
'wl_list_for_each_safe']
|
'wl_list_for_each_safe']
|
||||||
|
IncludeCategories:
|
||||||
|
- Regex: '<.*>'
|
||||||
|
- Regex: '.*'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue