Add polar.sh to FUNDING
[libmodbus.git] / .clang-format
blob9521e9f09b9b31025190fed727fdca852d25f6b6
1 ---
2 BasedOnStyle: LLVM
3 AlignArrayOfStructures: Left
4 AlignOperands: true
5 AlignConsecutiveAssignments: false
6 AlignConsecutiveMacros: true
7 AlignEscapedNewlines: Left
8 AlignTrailingComments: true
9 AllowShortBlocksOnASingleLine: false
10 AllowShortCaseLabelsOnASingleLine: false
11 AllowShortEnumsOnASingleLine: false
12 AllowShortFunctionsOnASingleLine: None
13 AllowShortIfStatementsOnASingleLine: Never
14 BreakBeforeBraces: Custom
15 BraceWrapping:
16     AfterClass: false
17     AfterControlStatement: false
18     AfterEnum: false
19     AfterFunction: true
20     AfterNamespace: true
21     AfterObjCDeclaration: true
22     AfterStruct: false
23     AfterUnion: false
24     AfterExternBlock: false
25     BeforeCatch: false
26     BeforeElse: false
27     IndentBraces: false
28     SplitEmptyFunction: true
29     SplitEmptyRecord: true
30     SplitEmptyNamespace: true
31 BinPackArguments: false
32 BinPackParameters: false
33 ColumnLimit: 90
34 ConstructorInitializerAllOnOneLineOrOnePerLine: true
35 IncludeBlocks: Preserve
36 IndentWidth: 4
37 ObjCBlockIndentWidth: 4
38 PointerAlignment: Right
39 ReferenceAlignment: Right
40 SpaceAfterCStyleCast: true
41 SpaceAfterTemplateKeyword: true
42 SpaceBeforeAssignmentOperators: true
43 SpaceBeforeCtorInitializerColon: true
44 SpaceBeforeInheritanceColon: true
45 SpaceBeforeParens: ControlStatementsExceptForEachMacros
46 SpaceBeforeRangeBasedForLoopColon: true
47 SpaceInEmptyParentheses: false
48 SpacesBeforeTrailingComments: 1
49 SpacesInAngles: false
50 SpacesInContainerLiterals: false
51 SpacesInCStyleCastParentheses: false
52 SpacesInParentheses: false
53 SpacesInSquareBrackets: false
54 SeparateDefinitionBlocks: Always
55 UseTab: Never
56 PPIndentWidth: 2