forked from liblogicalaccess/liblogicalaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
31 lines (31 loc) · 855 Bytes
/
.clang-format
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
## General Configuration
Language: Cpp
Standard: Cpp11
BreakBeforeBraces: Allman
Cpp11BracedListStyle: true
ColumnLimit: 90
IndentWidth: 4
UseTab: Never
# Misc
AlignConsecutiveAssignments: true
PointerAlignment: Right
AlignTrailingComments: true
MaxEmptyLinesToKeep: 2
# Force break most of the time.
AllowAllParametersOfDeclarationOnNextLine: false
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: true
AllowShortFunctionsOnASingleLine: Empty
AllowShortIfStatementsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: false
AlwaysBreakTemplateDeclarations: true
# Constructor
BreakConstructorInitializersBeforeComma: true
ConstructorInitializerIndentWidth: 4
# Class / Namespace
AccessModifierOffset: -2
NamespaceIndentation: None
# Spaces
SpaceBeforeParens: ControlStatements
SortIncludes: false
FixNamespaceComments: false