Skip to content

Commit a8f4547

Browse files
将堆内存分配器换成 liballoc, 修复 fpu 上下文未对其导致异常问题.
修复 nanosleep 返回行为不符合预期问题. 规范化命名调度器函数与修复调度器抽象结构部分潜在BUG. Co-authored-by: wenxuanjun <41050170+wenxuanjun@users.noreply.github.com>
1 parent 24227c2 commit a8f4547

33 files changed

+579
-568
lines changed

.clang-format

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ AlignConsecutiveMacros: AcrossComments
1414
AlignEscapedNewlines: Right
1515
AlignOperands: Align
1616
AlignTrailingComments: true
17-
AllowAllArgumentsOnNextLine: true
18-
AllowAllParametersOfDeclarationOnNextLine: true
17+
AllowAllArgumentsOnNextLine: false
18+
AllowAllParametersOfDeclarationOnNextLine: false
1919
AllowShortEnumsOnASingleLine: false
20-
AllowShortBlocksOnASingleLine: Always
21-
AllowShortCaseLabelsOnASingleLine: true
22-
AllowShortFunctionsOnASingleLine: Empty
23-
AllowShortLambdasOnASingleLine: All
24-
AllowShortIfStatementsOnASingleLine: WithoutElse
20+
AllowShortBlocksOnASingleLine: Never
21+
AllowShortCaseLabelsOnASingleLine: false
22+
AllowShortFunctionsOnASingleLine: None
23+
AllowShortLambdasOnASingleLine: Empty
24+
AllowShortIfStatementsOnASingleLine: Never
2525
AllowShortLoopsOnASingleLine: false
2626
AlwaysBreakAfterDefinitionReturnType: None
2727
AlwaysBreakAfterReturnType: None
@@ -72,8 +72,8 @@ AttributeMacros:
7272
- HOT
7373
- COLD
7474
- sized_by
75-
BinPackArguments: true
76-
BinPackParameters: true
75+
BinPackArguments: false
76+
BinPackParameters: false
7777
BraceWrapping:
7878
AfterCaseLabel: false
7979
AfterClass: false
@@ -93,7 +93,7 @@ BraceWrapping:
9393
SplitEmptyFunction: true
9494
SplitEmptyRecord: true
9595
SplitEmptyNamespace: true
96-
BreakBeforeBinaryOperators: None
96+
BreakBeforeBinaryOperators: NonAssignment
9797
BreakBeforeConceptDeclarations: true
9898
BreakBeforeBraces: Attach
9999
BreakBeforeInheritanceComma: false
@@ -178,7 +178,7 @@ PenaltyIndentedWhitespace: 0
178178
PointerAlignment: Right
179179
PPIndentWidth: -1
180180
ReferenceAlignment: Pointer
181-
ReflowComments: false
181+
ReflowComments: true
182182
RemoveBracesLLVM: false
183183
SeparateDefinitionBlocks: Leave
184184
ShortNamespaceLines: 1

.clang-tidy

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Checks: >
1111
bugprone-*,
1212
modernize-*,
1313
clang-analyzer-*,
14-
-readability-braces-around-statements,
1514
-readability-identifier-length,
1615
-readability-magic-numbers,
1716
-readability-implicit-bool-conversion,
@@ -21,4 +20,18 @@ Checks: >
2120
-bugprone-easily-swappable-parameters,
2221
-modernize-use-nullptr,
2322
24-
FormatStyle: none
23+
FormatStyle: file
24+
25+
CheckOptions:
26+
- key: readability-braces-around-statements.ShortStatementLines
27+
value: "0"
28+
- key: readability-function-size.LineThreshold
29+
value: "120"
30+
- key: readability-function-size.StatementThreshold
31+
value: "60"
32+
- key: readability-function-size.BranchThreshold
33+
value: "25"
34+
- key: readability-function-size.NestingThreshold
35+
value: "4"
36+
- key: readability-function-size.VariableThreshold
37+
value: "30"

0 commit comments

Comments
 (0)