forked from CoatiSoftware/qtc-sourcetrail
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.clang-format
More file actions
88 lines (74 loc) · 2.24 KB
/
.clang-format
File metadata and controls
88 lines (74 loc) · 2.24 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
Language: Cpp
Standard: Latest
ColumnLimit: 150
AccessModifierOffset: -4
AlignAfterOpenBracket: DontAlign
TabWidth: 4
IndentWidth: 4
UseTab: Always
# UseTab: AlignWithSpaces
# AlignConsecutiveAssignments: Consecutive
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Never
AllowShortLambdasOnASingleLine: None
AllowShortLoopsOnASingleLine: false
BreakTemplateDeclarations: Yes
BreakBeforeBinaryOperators: None
FixNamespaceComments: true
BreakBeforeBraces: Custom
# Basically the 'Allman' style, but necessary for 'BeforeLambdaBody'
# BraceWrapping:
# AfterCaseLabel: true
# AfterClass: true
# AfterControlStatement: Always
# AfterEnum: true
# AfterFunction: true
# AfterNamespace: true
# AfterStruct: true
# AfterUnion: true
# AfterExternBlock: true
# BeforeCatch: true
# BeforeElse: true
# BeforeLambdaBody: true
# BeforeWhile: true
# SplitEmptyFunction: true
# SplitEmptyRecord: true
# SplitEmptyNamespace: true
# K&R style:
BraceWrapping:
AfterCaseLabel: false
AfterClass: true
AfterControlStatement: Never
AfterEnum: true
AfterFunction: true
AfterNamespace: true
AfterStruct: true
AfterUnion: true
AfterExternBlock: true
BeforeCatch: false
BeforeElse: false
BeforeLambdaBody: true
BeforeWhile: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
# Warning
# This option will be renamed and expanded to support other styles.
#
# Warning
# Setting this option to true could lead to incorrect code formatting due to clang-format’s lack of complete semantic
# information. As such, extra care should be taken to review code changes made by this option.
#RemoveBracesLLVM: true
# Warning
# Setting this option to any value other than Leave could lead to incorrect code formatting due to clang-format’s lack of
# complete semantic information. As such, extra care should be taken to review code changes made by this option.
#RemoveParentheses: MultipleParentheses
LambdaBodyIndentation: OuterScope
# Constructor settings:
PackConstructorInitializers: Never
BreakConstructorInitializers: BeforeComma
PenaltyBreakOpenParenthesis: 1
# BinPackArguments: false (Breaks connect calls!)