Skip to content

Commit 96f435a

Browse files
committed
[eServiceMP3]
* reformat code
1 parent 522ac9e commit 96f435a

File tree

3 files changed

+3803
-4216
lines changed

3 files changed

+3803
-4216
lines changed

.clang-format

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
# Modern C++ style guide based on LLVM/Google/Mozilla guidelines
3+
BasedOnStyle: LLVM
4+
Language: Cpp
5+
Standard: c++17
6+
7+
# Modern indentation
8+
IndentWidth: 4
9+
TabWidth: 4
10+
UseTab: Never
11+
ContinuationIndentWidth: 4
12+
NamespaceIndentation: None
13+
AccessModifierOffset: -4
14+
15+
# Modern code layout
16+
ColumnLimit: 120
17+
MaxEmptyLinesToKeep: 2
18+
KeepEmptyLinesAtTheStartOfBlocks: false
19+
20+
# Modern brace style
21+
BreakBeforeBraces: Custom
22+
BraceWrapping:
23+
AfterClass: false
24+
AfterControlStatement: false
25+
AfterEnum: false
26+
AfterFunction: false
27+
AfterNamespace: false
28+
AfterStruct: false
29+
AfterUnion: false
30+
BeforeCatch: false
31+
BeforeElse: false
32+
IndentBraces: false
33+
34+
# Modern switch/case style
35+
IndentCaseLabels: true
36+
IndentCaseBlocks: false
37+
AllowShortCaseLabelsOnASingleLine: false
38+
39+
# Modern alignment
40+
PointerAlignment: Left
41+
AlignAfterOpenBracket: Align # Changed from AlignOrBreak to Align
42+
AlignOperands: true
43+
AlignTrailingComments: true
44+
AlignConsecutiveAssignments: true
45+
AlignConsecutiveDeclarations: true
46+
47+
# Modern breaking rules
48+
AllowAllParametersOfDeclarationOnNextLine: true
49+
AllowShortBlocksOnASingleLine: Empty
50+
AllowShortFunctionsOnASingleLine: Empty
51+
AllowShortIfStatementsOnASingleLine: Never
52+
AllowShortLoopsOnASingleLine: false
53+
AlwaysBreakAfterReturnType: None
54+
IncludeBlocks: Preserve

0 commit comments

Comments
 (0)