From 0ee14e9b474e3b2e618ef2d2c39d92ae390a36dd Mon Sep 17 00:00:00 2001 From: TuxMonkey <8196772+tuxmonkey@user.noreply.gitee.com> Date: Sat, 15 Nov 2025 15:21:02 +0800 Subject: [PATCH] buzzer ok (because rtos not start cant read ticks) --- .clang-format | 7 +--- cformat.xml | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 6 deletions(-) create mode 100644 cformat.xml diff --git a/.clang-format b/.clang-format index ae02442..5693804 100644 --- a/.clang-format +++ b/.clang-format @@ -1,13 +1,12 @@ --- Language: Cpp -BasedOnStyle: LLVM +BasedOnStyle: Microsoft AccessModifierOffset: -4 AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false AlignOperands: true AlignTrailingComments: false AllowShortBlocksOnASingleLine: false -AllowShortFunctionsOnASingleLine: None AlwaysBreakTemplateDeclarations: Yes BraceWrapping: AfterCaseLabel: true @@ -27,10 +26,8 @@ BraceWrapping: SplitEmptyFunction: true SplitEmptyRecord: true SplitEmptyNamespace: true -BreakBeforeBraces: Custom BreakConstructorInitializers: AfterColon BreakConstructorInitializersBeforeComma: false -ColumnLimit: 120 ConstructorInitializerAllOnOneLineOrOnePerLine: false ContinuationIndentWidth: 8 IncludeCategories: @@ -42,7 +39,6 @@ IncludeCategories: Priority: 3 IncludeIsMainRegex: '([-_](test|unittest))?$' IndentCaseLabels: true -IndentWidth: 4 InsertNewlineAtEOF: true MacroBlockBegin: '' MacroBlockEnd: '' @@ -56,5 +52,4 @@ SpacesInAngles: false SpacesInConditionalStatement: false SpacesInCStyleCastParentheses: false SpacesInParentheses: false -TabWidth: 4 ... diff --git a/cformat.xml b/cformat.xml new file mode 100644 index 0000000..0e64214 --- /dev/null +++ b/cformat.xml @@ -0,0 +1,95 @@ + + + + \ No newline at end of file