forked from MITK/MITK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
36 lines (36 loc) · 939 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
32
33
34
35
36
---
Language: Cpp
BasedOnStyle: Google
AccessModifierOffset: -2
AlignEscapedNewlinesLeft: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: true
BinPackArguments: false
BinPackParameters: false
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: false
ColumnLimit: 120
ConstructorInitializerIndentWidth: 2
ContinuationIndentWidth: 2
DerivePointerAlignment: false
# order of windows.h and psapi.h needs to be preserved to avoid build errors
IncludeCategories:
- Regex: '[Ww]indows.h'
Priority: 2
- Regex: '[Pp]sapi.h'
Priority: 3
- Regex: '.\*'
Priority: 1
IndentFunctionDeclarationAfterType: false
IndentWidth: 2
IndentWrappedFunctionNames: true
NamespaceIndentation: All
PointerAlignment: Right
SpacesBeforeTrailingComments: 1
Standard: Cpp11
TabWidth: 2
UseTab: Never
...