1# .clang-format file for Percona TokuDB
2# Minimum required version of clang-format is 5.0.1. Earlier versions will work
3# but may need removal of some parameters.
4Language:        Cpp
5BasedOnStyle:  Google
6
7# The following parameters are default for Google style,
8# but as they are important for our project they
9# are set explicitly here
10AlignAfterOpenBracket: Align
11BreakBeforeBinaryOperators: None
12ColumnLimit:     80
13PointerAlignment: Left
14SpaceAfterCStyleCast: false
15SpaceBeforeAssignmentOperators: true
16SpaceBeforeParens: ControlStatements
17SpaceInEmptyParentheses: false
18SpacesBeforeTrailingComments: 2
19SpacesInAngles:  false
20SpacesInContainerLiterals: true
21SpacesInCStyleCastParentheses: false
22SpacesInParentheses: false
23SpacesInSquareBrackets: false
24UseTab:          Never
25
26# Non-default parameters
27NamespaceIndentation: All
28IndentWidth:     4
29TabWidth:        4
30AllowShortIfStatementsOnASingleLine: false
31AllowShortLoopsOnASingleLine: false
32BinPackParameters: false
33BinPackArguments: false
34ExperimentalAutoDetectBinPacking: false
35AllowAllParametersOfDeclarationOnNextLine: false
36# not supported in 5.0.1
37#AlignConsecutiveAssignments: yes
38#AlignConsecutiveDeclarations: yes
39BreakStringLiterals: false
40ReflowComments: true
41