build: update coding-style settings
Update .editorconfig, and add .clang-format. Note that current code does _not_ follow that, but we'll slowly get there.
This commit is contained in:
39
.clang-format
Normal file
39
.clang-format
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
AlignAfterOpenBracket: 'Align'
|
||||
AlignConsecutiveAssignments: 'false'
|
||||
AlignConsecutiveDeclarations: 'false'
|
||||
AlignConsecutiveMacros: 'true'
|
||||
AlignOperands: 'true'
|
||||
AlignTrailingComments: 'true'
|
||||
AllowAllArgumentsOnNextLine: 'false'
|
||||
AllowAllParametersOfDeclarationOnNextLine: 'false'
|
||||
AllowShortBlocksOnASingleLine: 'false'
|
||||
AllowShortCaseLabelsOnASingleLine: 'false'
|
||||
AllowShortFunctionsOnASingleLine: 'Inline'
|
||||
AllowShortIfStatementsOnASingleLine: 'false'
|
||||
AlwaysBreakAfterReturnType: 'All'
|
||||
BinPackParameters: 'false'
|
||||
BinPackArguments: 'false'
|
||||
BreakBeforeBraces: 'Linux'
|
||||
ColumnLimit: '100'
|
||||
DerivePointerAlignment: 'false'
|
||||
IndentCaseLabels: 'false'
|
||||
IndentWidth: '8'
|
||||
KeepEmptyLinesAtTheStartOfBlocks: 'false'
|
||||
Language: 'Cpp'
|
||||
MaxEmptyLinesToKeep: '1'
|
||||
PointerAlignment: 'Right'
|
||||
SortIncludes: 'false'
|
||||
SpaceAfterCStyleCast: 'false'
|
||||
SpaceBeforeAssignmentOperators : 'true'
|
||||
SpaceBeforeParens: 'ControlStatements'
|
||||
SpaceInEmptyParentheses: 'false'
|
||||
SpacesInSquareBrackets: 'false'
|
||||
TabWidth: '8'
|
||||
UseTab: 'AlignWithSpaces'
|
||||
PenaltyBreakAssignment: '3'
|
||||
PenaltyBreakBeforeFirstCallParameter: '15'
|
||||
|
||||
# Local Variables:
|
||||
# mode: yaml
|
||||
# End:
|
||||
Reference in New Issue
Block a user