Skip to content

Commit 148299e

Browse files
committed
Update clang-format file
1 parent eeb0c42 commit 148299e

File tree

1 file changed

+25
-16
lines changed

1 file changed

+25
-16
lines changed

.clang-format

Lines changed: 25 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,65 @@
11
---
22
BasedOnStyle: LLVM
33
AccessModifierOffset: -4
4-
AlignEscapedNewlinesLeft: false
54
AlignTrailingComments: true
65
AllowAllParametersOfDeclarationOnNextLine: true
76
AllowShortIfStatementsOnASingleLine: false
87
AllowShortLoopsOnASingleLine: false
9-
AllowShortFunctionsOnASingleLine: false
10-
AlwaysBreakTemplateDeclarations: true
8+
AllowShortFunctionsOnASingleLine: None
9+
AlwaysBreakTemplateDeclarations: Yes
1110
AlwaysBreakBeforeMultilineStrings: false
1211
BinPackParameters: true
13-
BreakBeforeBinaryOperators: false
14-
BreakBeforeBraces: Allman
12+
BreakBeforeBinaryOperators: None
13+
BreakBeforeBraces: Custom
14+
BraceWrapping:
15+
AfterCaseLabel: true
16+
AfterClass: true
17+
AfterControlStatement: Always
18+
AfterEnum: true
19+
AfterExternBlock: true
20+
AfterFunction: true
21+
AfterNamespace: true
22+
AfterObjCDeclaration: true
23+
AfterStruct: true
24+
AfterUnion: true
25+
BeforeCatch: true
26+
BeforeElse: true
27+
BeforeLambdaBody: false
28+
BeforeWhile: false
29+
IndentBraces: false
30+
SplitEmptyFunction: true
31+
SplitEmptyNamespace: true
32+
SplitEmptyRecord: true
1533
BreakBeforeTernaryOperators: false
1634
BreakConstructorInitializersBeforeComma: false
1735
ColumnLimit: 100
1836
ConstructorInitializerIndentWidth: 0
1937
ConstructorInitializerAllOnOneLineOrOnePerLine: false
2038
Cpp11BracedListStyle: false
21-
DerivePointerBinding: false
2239
ExperimentalAutoDetectBinPacking: false
2340
IndentCaseLabels: false
2441
IndentWidth: 4
25-
IndentFunctionDeclarationAfterType: false
2642
MaxEmptyLinesToKeep: 1
2743
NamespaceIndentation: Inner
2844

29-
PointerBindsToType: true
30-
3145
PenaltyBreakBeforeFirstCallParameter: 19
3246
PenaltyBreakComment: 60
3347
PenaltyBreakString: 1000
3448
PenaltyBreakFirstLessLess: 120
3549
PenaltyExcessCharacter: 1000000
3650
PenaltyReturnTypeOnItsOwnLine: 60
37-
51+
PointerAlignment: Left
3852

3953
SpaceBeforeAssignmentOperators: true
4054
SpaceInEmptyParentheses: false
4155
SpacesBeforeTrailingComments: 1
4256

43-
44-
Standard: Cpp11
57+
Standard: Latest
4558
TabWidth: 4
4659
UseTab: Never
4760

4861
SpacesInParentheses: false
4962
SpacesInAngles: false
50-
SpaceInEmptyParentheses: false
5163
SpacesInCStyleCastParentheses: false
52-
SpaceAfterControlStatementKeyword: true
53-
SpaceBeforeAssignmentOperators: true
5464
ContinuationIndentWidth: 4
5565
...
56-

0 commit comments

Comments
 (0)