mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
|
# .clang-format file for Percona TokuDB
|
||
|
# Minimum required version of clang-format is 5.0.1. Earlier versions will work
|
||
|
# but may need removal of some parameters.
|
||
|
Language: Cpp
|
||
|
BasedOnStyle: Google
|
||
|
|
||
|
# The following parameters are default for Google style,
|
||
|
# but as they are important for our project they
|
||
|
# are set explicitly here
|
||
|
AlignAfterOpenBracket: Align
|
||
|
BreakBeforeBinaryOperators: None
|
||
|
ColumnLimit: 80
|
||
|
PointerAlignment: Left
|
||
|
SpaceAfterCStyleCast: false
|
||
|
SpaceBeforeAssignmentOperators: true
|
||
|
SpaceBeforeParens: ControlStatements
|
||
|
SpaceInEmptyParentheses: false
|
||
|
SpacesBeforeTrailingComments: 2
|
||
|
SpacesInAngles: false
|
||
|
SpacesInContainerLiterals: true
|
||
|
SpacesInCStyleCastParentheses: false
|
||
|
SpacesInParentheses: false
|
||
|
SpacesInSquareBrackets: false
|
||
|
UseTab: Never
|
||
|
|
||
|
# Non-default parameters
|
||
|
NamespaceIndentation: All
|
||
|
IndentWidth: 4
|
||
|
TabWidth: 4
|
||
|
AllowShortIfStatementsOnASingleLine: false
|
||
|
AllowShortLoopsOnASingleLine: false
|
||
|
BinPackParameters: false
|
||
|
BinPackArguments: false
|
||
|
ExperimentalAutoDetectBinPacking: false
|
||
|
AllowAllParametersOfDeclarationOnNextLine: false
|
||
|
# not supported in 5.0.1
|
||
|
#AlignConsecutiveAssignments: yes
|
||
|
#AlignConsecutiveDeclarations: yes
|
||
|
BreakStringLiterals: false
|
||
|
ReflowComments: true
|