Skip to content

Commit 3aa1fa8

Browse files
authored
Merge pull request #557 from BerndAmend/develop
change .clang-format and reformat code with clang-format 11
2 parents ef5a22b + cff6a0a commit 3aa1fa8

82 files changed

Lines changed: 23246 additions & 25323 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.clang-format

Lines changed: 33 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,33 @@
1-
AccessModifierOffset: -2
2-
AlignAfterOpenBracket: DontAlign
3-
AlignConsecutiveAssignments: false
4-
AlignConsecutiveDeclarations: false
5-
AlignEscapedNewlines: Left
6-
AlignOperands: true
7-
AlignTrailingComments: false
8-
AllowAllParametersOfDeclarationOnNextLine: false
9-
AllowShortBlocksOnASingleLine: true
10-
AllowShortCaseLabelsOnASingleLine: false
11-
AllowShortFunctionsOnASingleLine: All
12-
AllowShortIfStatementsOnASingleLine: true
13-
AllowShortLoopsOnASingleLine: true
14-
AlwaysBreakAfterDefinitionReturnType: None
15-
AlwaysBreakAfterReturnType: None
16-
AlwaysBreakBeforeMultilineStrings: true
17-
AlwaysBreakTemplateDeclarations: false
18-
BinPackArguments: false
19-
BinPackParameters: false
20-
BraceWrapping:
21-
AfterClass: true
22-
AfterControlStatement: false
23-
AfterEnum: false
24-
AfterFunction: true
25-
AfterNamespace: false
26-
AfterObjCDeclaration: false
27-
AfterStruct: true
28-
AfterUnion: false
29-
BeforeCatch: false
30-
BeforeElse: false
31-
IndentBraces: false
32-
SplitEmptyFunction: false
33-
SplitEmptyNamespace: true
34-
SplitEmptyRecord: true
35-
BreakAfterJavaFieldAnnotations: true
36-
BreakBeforeBinaryOperators: NonAssignment
37-
BreakBeforeBraces: Custom
38-
BreakBeforeInheritanceComma: true
39-
BreakBeforeTernaryOperators: true
40-
BreakConstructorInitializers: BeforeColon
41-
BreakConstructorInitializersBeforeComma: false
42-
BreakStringLiterals: true
43-
ColumnLimit: 0
44-
CommentPragmas: '^ IWYU pragma:'
45-
CompactNamespaces: false
46-
ConstructorInitializerAllOnOneLineOrOnePerLine: false
47-
ConstructorInitializerIndentWidth: 2
48-
ContinuationIndentWidth: 2
49-
Cpp11BracedListStyle: false
50-
DerivePointerAlignment: true
51-
DisableFormat: false
52-
ExperimentalAutoDetectBinPacking: true
53-
FixNamespaceComments: true
54-
ForEachMacros:
55-
- foreach
56-
- Q_FOREACH
57-
- BOOST_FOREACH
58-
IncludeCategories:
59-
- Priority: 2
60-
Regex: ^"(llvm|llvm-c|clang|clang-c)/
61-
- Priority: 3
62-
Regex: ^(<|"(gtest|gmock|isl|json)/)
63-
- Priority: 1
64-
Regex: .*
65-
IncludeIsMainRegex: (Test)?$
66-
IndentCaseLabels: false
67-
IndentWidth: 2
68-
IndentWrappedFunctionNames: true
69-
JavaScriptQuotes: Leave
70-
JavaScriptWrapImports: true
71-
KeepEmptyLinesAtTheStartOfBlocks: true
72-
Language: Cpp
73-
MacroBlockBegin: ''
74-
MacroBlockEnd: ''
75-
MaxEmptyLinesToKeep: 2
76-
NamespaceIndentation: Inner
77-
ObjCBlockIndentWidth: 7
78-
ObjCSpaceAfterProperty: true
79-
ObjCSpaceBeforeProtocolList: false
80-
PointerAlignment: Right
81-
ReflowComments: true
82-
SortIncludes: false
83-
SortUsingDeclarations: false
84-
SpaceAfterCStyleCast: false
85-
SpaceAfterTemplateKeyword: false
86-
SpaceBeforeAssignmentOperators: true
87-
SpaceBeforeParens: ControlStatements
88-
SpaceInEmptyParentheses: false
89-
SpacesBeforeTrailingComments: 0
90-
SpacesInAngles: false
91-
SpacesInCStyleCastParentheses: false
92-
SpacesInContainerLiterals: true
93-
SpacesInParentheses: false
94-
SpacesInSquareBrackets: false
95-
Standard: Cpp11
96-
TabWidth: 8
97-
UseTab: Never
98-
1+
# clang-format: 11
2+
AccessModifierOffset: -2
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveBitFields: false
5+
AllowShortBlocksOnASingleLine: false
6+
AllowShortFunctionsOnASingleLine: Inline
7+
AllowShortLambdasOnASingleLine: All
8+
AlwaysBreakTemplateDeclarations: true
9+
BasedOnStyle: WebKit
10+
BinPackArguments: true
11+
BinPackParameters: true
12+
BreakBeforeBraces: Attach
13+
ColumnLimit: 0
14+
Cpp11BracedListStyle: true
15+
FixNamespaceComments: true
16+
IncludeBlocks: Preserve
17+
IndentCaseLabels: true
18+
IndentPPDirectives: None
19+
IndentWidth: 2
20+
KeepEmptyLinesAtTheStartOfBlocks: false
21+
NamespaceIndentation: All
22+
PenaltyBreakBeforeFirstCallParameter: 200
23+
PenaltyBreakComment: 5
24+
PenaltyBreakFirstLessLess: 50
25+
PenaltyExcessCharacter: 4
26+
PointerAlignment: Right
27+
SortIncludes: true
28+
SpaceAfterTemplateKeyword: false
29+
SpaceBeforeCpp11BracedList: false
30+
SpaceInEmptyBlock: false
31+
Standard: Latest
32+
TabWidth: 2
33+
UseTab: Never

0 commit comments

Comments
 (0)