From e50d4bb19c4d95b89ea0fa63abdf8a6f522c1d75 Mon Sep 17 00:00:00 2001 From: BZLZHH Date: Fri, 15 Aug 2025 18:27:35 +0800 Subject: [PATCH] [Chore] (clang-format): Upload .clang-format --- .clang-format | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..1c0cdc87 --- /dev/null +++ b/.clang-format @@ -0,0 +1,24 @@ +BasedOnStyle: Microsoft +IndentWidth: 4 +UseTab: Never +AccessModifierOffset: -4 +PointerAlignment: Left +BreakBeforeBraces: Custom +BraceWrapping: + AfterFunction: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterNamespace: false + AfterStruct: false + AfterUnion: false + BeforeElse: false + SplitEmptyFunction: false + SplitEmptyRecord: false + +AllowShortBlocksOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: WithoutElse +AlwaysBreakTemplateDeclarations: Yes +NamespaceIndentation: All +AllowShortFunctionsOnASingleLine: Inline +SortIncludes: false