Skip to content

Commit f01cbfb

Browse files
authored
Merge pull request #1 from Serial-IO/make-core
Make core
2 parents f4ac57f + 719f80b commit f01cbfb

34 files changed

+1799
-11
lines changed

.clang-format

Lines changed: 163 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Microsoft
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: BlockIndent
6+
AlignEscapedNewlines: Right
7+
AlignOperands: Align
8+
AlignTrailingComments: false
9+
AlignConsecutiveAssignments: true
10+
AlignConsecutiveDeclarations: true
11+
AllowAllArgumentsOnNextLine: true
12+
AllowAllConstructorInitializersOnNextLine: true
13+
AllowAllParametersOfDeclarationOnNextLine: true
14+
AllowShortEnumsOnASingleLine: false
15+
AllowShortBlocksOnASingleLine: Never
16+
AllowShortCaseLabelsOnASingleLine: false
17+
AllowShortFunctionsOnASingleLine: None
18+
AllowShortLambdasOnASingleLine: All
19+
AllowShortIfStatementsOnASingleLine: Never
20+
AllowShortLoopsOnASingleLine: false
21+
AlwaysBreakAfterDefinitionReturnType: None
22+
AlwaysBreakAfterReturnType: None
23+
AlwaysBreakBeforeMultilineStrings: false
24+
AlwaysBreakTemplateDeclarations: MultiLine
25+
AttributeMacros:
26+
- __capability
27+
BinPackArguments: false
28+
BinPackParameters: AlwaysOnePerLine
29+
BraceWrapping:
30+
AfterCaseLabel: false
31+
AfterClass: true
32+
AfterControlStatement: Always
33+
AfterEnum: true
34+
AfterFunction: true
35+
AfterNamespace: true
36+
AfterObjCDeclaration: true
37+
AfterStruct: true
38+
AfterUnion: false
39+
AfterExternBlock: true
40+
BeforeCatch: true
41+
BeforeElse: true
42+
BeforeLambdaBody: false
43+
BeforeWhile: false
44+
IndentBraces: false
45+
SplitEmptyFunction: true
46+
SplitEmptyRecord: true
47+
SplitEmptyNamespace: true
48+
BreakBeforeBinaryOperators: None
49+
BreakBeforeConceptDeclarations: true
50+
BreakBeforeBraces: Custom
51+
BreakBeforeInheritanceComma: false
52+
BreakInheritanceList: BeforeColon
53+
BreakBeforeTernaryOperators: true
54+
BreakConstructorInitializersBeforeComma: false
55+
BreakConstructorInitializers: BeforeColon
56+
BreakAfterJavaFieldAnnotations: false
57+
BreakStringLiterals: true
58+
ColumnLimit: 120
59+
CommentPragmas: '^ IWYU pragma:'
60+
CompactNamespaces: false
61+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
62+
ConstructorInitializerIndentWidth: 4
63+
ContinuationIndentWidth: 4
64+
Cpp11BracedListStyle: true
65+
DeriveLineEnding: true
66+
DerivePointerAlignment: false
67+
DisableFormat: false
68+
EmptyLineBeforeAccessModifier: LogicalBlock
69+
ExperimentalAutoDetectBinPacking: false
70+
FixNamespaceComments: true
71+
ForEachMacros:
72+
- foreach
73+
- Q_FOREACH
74+
- BOOST_FOREACH
75+
StatementAttributeLikeMacros:
76+
- Q_EMIT
77+
IncludeBlocks: Preserve
78+
IncludeCategories:
79+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
80+
Priority: 2
81+
SortPriority: 0
82+
CaseSensitive: false
83+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
84+
Priority: 3
85+
SortPriority: 0
86+
CaseSensitive: false
87+
- Regex: '.*'
88+
Priority: 1
89+
SortPriority: 0
90+
CaseSensitive: false
91+
IncludeIsMainRegex: '(Test)?$'
92+
IncludeIsMainSourceRegex: ''
93+
IndentCaseLabels: false
94+
IndentCaseBlocks: false
95+
IndentGotoLabels: true
96+
IndentPPDirectives: None
97+
IndentExternBlock: AfterExternBlock
98+
IndentRequires: false
99+
IndentWidth: 4
100+
IndentWrappedFunctionNames: false
101+
InsertTrailingCommas: None
102+
JavaScriptQuotes: Leave
103+
JavaScriptWrapImports: true
104+
KeepEmptyLinesAtTheStartOfBlocks: true
105+
MacroBlockBegin: ''
106+
MacroBlockEnd: ''
107+
MaxEmptyLinesToKeep: 1
108+
NamespaceIndentation: None
109+
ObjCBinPackProtocolList: Auto
110+
ObjCBlockIndentWidth: 2
111+
ObjCBreakBeforeNestedBlockParam: true
112+
ObjCSpaceAfterProperty: false
113+
ObjCSpaceBeforeProtocolList: true
114+
PenaltyBreakAssignment: 2
115+
PenaltyBreakBeforeFirstCallParameter: 19
116+
PenaltyBreakComment: 300
117+
PenaltyBreakFirstLessLess: 120
118+
PenaltyBreakString: 1000
119+
PenaltyBreakTemplateDeclaration: 10
120+
PenaltyExcessCharacter: 1000000
121+
PenaltyReturnTypeOnItsOwnLine: 1000
122+
PenaltyIndentedWhitespace: 0
123+
PointerAlignment: Right
124+
ReflowComments: true
125+
SortIncludes: true
126+
SortJavaStaticImport: Before
127+
SortUsingDeclarations: true
128+
SpaceAfterCStyleCast: false
129+
SpaceAfterLogicalNot: false
130+
SpaceAfterTemplateKeyword: true
131+
SpaceBeforeAssignmentOperators: true
132+
SpaceBeforeCaseColon: false
133+
SpaceBeforeCpp11BracedList: false
134+
SpaceBeforeCtorInitializerColon: true
135+
SpaceBeforeInheritanceColon: true
136+
SpaceBeforeParens: ControlStatements
137+
SpaceAroundPointerQualifiers: Default
138+
SpaceBeforeRangeBasedForLoopColon: true
139+
SpaceInEmptyBlock: false
140+
SpaceInEmptyParentheses: false
141+
SpacesBeforeTrailingComments: 1
142+
SpacesInAngles: false
143+
SpacesInConditionalStatement: false
144+
SpacesInContainerLiterals: true
145+
SpacesInCStyleCastParentheses: false
146+
SpacesInParentheses: false
147+
SpacesInSquareBrackets: false
148+
SpaceBeforeSquareBrackets: false
149+
BitFieldColonSpacing: Both
150+
Standard: Latest
151+
StatementMacros:
152+
- Q_UNUSED
153+
- QT_REQUIRE_VERSION
154+
TabWidth: 4
155+
UseCRLF: false
156+
UseTab: Never
157+
WhitespaceSensitiveMacros:
158+
- STRINGIZE
159+
- PP_STRINGIZE
160+
- BOOST_PP_STRINGIZE
161+
- NS_SWIFT_NAME
162+
- CF_SWIFT_NAME
163+
...

0 commit comments

Comments
 (0)