-
Notifications
You must be signed in to change notification settings - Fork 0
/
.clang-format
29 lines (28 loc) · 982 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
---
BasedOnStyle: LLVM
# We want slighlyt longer lines.
ColumnLimit: 100
# When parameters do not fit into line, prefer breaking, and keep closing bracket in a new line
AlignAfterOpenBracket: BlockIndent
BreakBeforeBraces: Custom
# Brace after function definition should be in a new line
BraceWrapping:
AfterFunction: true
# Apply indentation to namespaces as well
NamespaceIndentation: All
# First we include all PraaS files
IncludeCategories:
- Regex: '^<praas/.*\.hpp>'
Priority: 1
- Regex: '^<.*'
Priority: 2
- Regex: '.*'
Priority: 3
# Prefer * and & to be aligned to type, not variable name
PointerAlignment: Left
# Template in line before of declaration
AlwaysBreakTemplateDeclarations: Yes
# Allow for spaces between class contents and braces
KeepEmptyLinesAtTheStartOfBlocks: Yes
# Prevent format from turning short one-liner functions into one-line definition
AllowShortFunctionsOnASingleLine: Empty