mirror of
https://github.com/reactos/reactos.git
synced 2024-11-23 11:33:31 +08:00
0c64aed86a
And set up a Travis job for checking formatting on PRs
36 lines
820 B
YAML
36 lines
820 B
YAML
# full manual is at https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
|
---
|
|
BasedOnStyle: Microsoft
|
|
|
|
IndentWidth: 4
|
|
UseTab: Never
|
|
|
|
IndentCaseLabels: true
|
|
|
|
AllowAllArgumentsOnNextLine: false
|
|
AllowAllParametersOfDeclarationOnNextLine: false
|
|
|
|
BinPackParameters: false
|
|
BinPackArguments: true
|
|
|
|
# This applies to () [] <>
|
|
AlignAfterOpenBracket: AlwaysBreak
|
|
|
|
# Always break before braces
|
|
BreakBeforeBraces: Allman
|
|
|
|
# return type on it's own line
|
|
AlwaysBreakAfterReturnType: All
|
|
|
|
SpaceBeforeAssignmentOperators: true
|
|
SpaceBeforeParens: ControlStatements
|
|
SpaceBeforeRangeBasedForLoopColon: true
|
|
SpaceInEmptyParentheses: false
|
|
SpacesBeforeTrailingComments: 1
|
|
SpacesInAngles: false
|
|
SpacesInContainerLiterals: true
|
|
SpacesInCStyleCastParentheses: false
|
|
SpacesInParentheses: false
|
|
SpacesInSquareBrackets: false
|
|
...
|