Skip to content

Commit e1c7e11

Browse files
committed
all: unify coding style using clang-format
1 parent be2a0af commit e1c7e11

File tree

99 files changed

+15646
-17839
lines changed

Some content is hidden

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

99 files changed

+15646
-17839
lines changed

.clang-format

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
BasedOnStyle: WebKit
2+
AccessModifierOffset: -2
3+
AlignAfterOpenBracket: Align
4+
AlignConsecutiveAssignments: false
5+
AlignConsecutiveDeclarations: false
6+
AlignOperands: true
7+
AlignTrailingComments: false
8+
AllowAllParametersOfDeclarationOnNextLine: false
9+
AllowShortBlocksOnASingleLine: false
10+
AllowShortCaseLabelsOnASingleLine: true
11+
AllowShortFunctionsOnASingleLine: Inline
12+
AllowShortIfStatementsOnASingleLine: false
13+
AllowShortLoopsOnASingleLine: false
14+
AlwaysBreakAfterDefinitionReturnType: None
15+
AlwaysBreakAfterReturnType: None
16+
AlwaysBreakBeforeMultilineStrings: false
17+
AlwaysBreakTemplateDeclarations: false
18+
BinPackArguments: true
19+
BinPackParameters: true
20+
BreakBeforeBinaryOperators: NonAssignment
21+
BreakBeforeBraces: WebKit
22+
BreakConstructorInitializersBeforeComma: false
23+
# BreakStringLiterals: true
24+
ColumnLimit: 100
25+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
26+
DerivePointerAlignment: false
27+
ForEachMacros: [RANGES_FOR, FOREACH, Q_FOREACH, FOR_EACH, foreach, BOOST_FOREACH, BOOST_REVERSE_FOREACH]
28+
IndentCaseLabels: false
29+
IndentWidth: 2
30+
KeepEmptyLinesAtTheStartOfBlocks: false
31+
Language: Cpp
32+
MaxEmptyLinesToKeep: 1
33+
NamespaceIndentation: None
34+
PenaltyReturnTypeOnItsOwnLine: 1000000
35+
PointerAlignment: Right
36+
ReflowComments: true
37+
SortIncludes: false
38+
SpaceAfterCStyleCast: false
39+
SpaceBeforeAssignmentOperators: true
40+
SpaceBeforeParens: ControlStatements
41+
SpaceInEmptyParentheses: false
42+
SpacesInAngles: false
43+
SpacesInCStyleCastParentheses: false
44+
SpacesInParentheses: false
45+
SpacesInSquareBrackets: false
46+
Standard: Cpp03
47+
TabWidth: 2
48+
UseTab: Never
49+

0 commit comments

Comments
 (0)