Skip to content

Commit 6f0d63e

Browse files
committed
run format across the whole project
1 parent 964313c commit 6f0d63e

File tree

461 files changed

+62360
-60667
lines changed

Some content is hidden

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

461 files changed

+62360
-60667
lines changed

.clang-format

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
Language: Cpp
2+
BasedOnStyle: Google
3+
AccessModifierOffset: -1
4+
AlignAfterOpenBracket: Align
5+
AlignConsecutiveAssignments: None
6+
AlignOperands: Align
7+
AllowAllArgumentsOnNextLine: true
8+
AllowAllConstructorInitializersOnNextLine: true
9+
AllowAllParametersOfDeclarationOnNextLine: false
10+
AllowShortBlocksOnASingleLine: Empty
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortFunctionsOnASingleLine: Inline
13+
AllowShortIfStatementsOnASingleLine: Never # To avoid conflict, set this "Never" and each "if statement" should include brace when coding
14+
AllowShortLambdasOnASingleLine: Inline
15+
AllowShortLoopsOnASingleLine: false
16+
AlwaysBreakAfterReturnType: None
17+
AlwaysBreakTemplateDeclarations: Yes
18+
BinPackArguments: true
19+
BreakBeforeBraces: Custom
20+
BraceWrapping:
21+
AfterCaseLabel: false
22+
AfterClass: false
23+
AfterStruct: false
24+
AfterControlStatement: Never
25+
AfterEnum: false
26+
AfterFunction: false
27+
AfterNamespace: false
28+
AfterUnion: false
29+
AfterExternBlock: false
30+
BeforeCatch: false
31+
BeforeElse: false
32+
BeforeLambdaBody: false
33+
IndentBraces: false
34+
SplitEmptyFunction: false
35+
SplitEmptyRecord: false
36+
SplitEmptyNamespace: false
37+
BreakBeforeBinaryOperators: None
38+
BreakBeforeTernaryOperators: true
39+
BreakConstructorInitializers: BeforeColon
40+
BreakInheritanceList: BeforeColon
41+
ColumnLimit: 80
42+
CompactNamespaces: false
43+
ContinuationIndentWidth: 4
44+
Cpp11BracedListStyle: true
45+
DerivePointerAlignment: false # Make sure the * or & align on the left
46+
EmptyLineBeforeAccessModifier: LogicalBlock
47+
FixNamespaceComments: true
48+
IncludeBlocks: Preserve
49+
IndentCaseLabels: true
50+
IndentPPDirectives: None
51+
IndentWidth: 4 # Google style guide is 2, but 4 is more common
52+
KeepEmptyLinesAtTheStartOfBlocks: true
53+
MaxEmptyLinesToKeep: 1
54+
NamespaceIndentation: None
55+
ObjCSpaceAfterProperty: false
56+
ObjCSpaceBeforeProtocolList: true
57+
PointerAlignment: Left
58+
ReflowComments: false
59+
SeparateDefinitionBlocks: Always # Only support since clang-format 14
60+
SpaceAfterCStyleCast: false
61+
SpaceAfterLogicalNot: false
62+
SpaceAfterTemplateKeyword: true
63+
SpaceBeforeAssignmentOperators: true
64+
SpaceBeforeCpp11BracedList: false
65+
SpaceBeforeCtorInitializerColon: true
66+
SpaceBeforeInheritanceColon: true
67+
SpaceBeforeParens: ControlStatements
68+
SpaceBeforeRangeBasedForLoopColon: true
69+
SpaceBeforeSquareBrackets: false
70+
SpaceInEmptyParentheses: false
71+
SpacesBeforeTrailingComments: 2
72+
SpacesInAngles: false
73+
SpacesInCStyleCastParentheses: false
74+
SpacesInContainerLiterals: false
75+
SpacesInParentheses: false
76+
SpacesInSquareBrackets: false
77+
Standard: c++11
78+
TabWidth: 4
79+
UseTab: Never

algorithm/libcrc/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# crc-lib-c
2+
23
基于C语言的CRC校验库,包括常用的21个CRC参数模型实现
34

45
#### 常用的CRC参数模型
@@ -33,5 +34,5 @@
3334

3435
离线计算工具:
3536

36-
- CRC_Calc v0.1:http://xz.w10a.com/Small/CRCJISUANQI.zip
37-
- 格西CRC计算器:http://www.geshe.com/home/products/GToolbox/bin/GCRC.exe
37+
- CRC_Calc v0.1:<http://xz.w10a.com/Small/CRCJISUANQI.zip>
38+
- 格西CRC计算器:<http://www.geshe.com/home/products/GToolbox/bin/GCRC.exe>

0 commit comments

Comments
 (0)