-
Notifications
You must be signed in to change notification settings - Fork 68
/
.clang-format
37 lines (37 loc) · 1.06 KB
/
.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
37
---
BasedOnStyle: LLVM
TabWidth: 4
IndentWidth: 4
ColumnLimit: 120
AllowShortFunctionsOnASingleLine: false
---
UseTab: ForIndentation
DerivePointerAlignment: false
PointerAlignment: Right
AlignConsecutiveMacros: true
AlignTrailingComments: true
AllowAllArgumentsOnNextLine: true
AllowAllConstructorInitializersOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AlwaysBreakAfterReturnType: AllDefinitions
AlignAfterOpenBracket: Align
IncludeBlocks: Preserve
IncludeCategories: # we want to ensure postgres.h appear first
- Regex: '^"postgres\.h"'
Priority: -2
- Regex: '^"c\.h"'
Priority: -1
IncludeIsMainRegex: ''
KeepEmptyLinesAtTheStartOfBlocks: true
SortIncludes: false
SpaceBeforeCpp11BracedList: true
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInConditionalStatement: false
AllowShortLambdasOnASingleLine: Inline
AllowShortLoopsOnASingleLine: false
AlwaysBreakTemplateDeclarations: Yes
Language: Cpp
AccessModifierOffset: -4