From d0d1ebacda56552c079951c854f55c7920cac809 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Tue, 24 Oct 2023 12:31:30 +0800 Subject: [PATCH] add .clang-format --- .clang-format | 39 +++++++++++++++++++++++++++++++++++++ MicroClient.vcxproj | 1 + MicroClient.vcxproj.filters | 1 + 3 files changed, 41 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..638b9b9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,39 @@ +AccessModifierOffset: -4 +AlignAfterOpenBracket: DontAlign +AllowShortBlocksOnASingleLine: true +AllowShortFunctionsOnASingleLine: All +BasedOnStyle: LLVM +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: false + AfterNamespace: false + AfterStruct: false + AfterUnion: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: true + SplitEmptyRecord: true +BreakBeforeBraces: Custom +ColumnLimit: 0 +Cpp11BracedListStyle: false +FixNamespaceComments: false +IndentCaseLabels: false +IndentPPDirectives: None +IndentWidth: 4 +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +PointerAlignment: Right +SortIncludes: false +SortUsingDeclarations: false +SpaceAfterCStyleCast: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeParens: ControlStatements +SpaceInEmptyParentheses: false +SpacesInCStyleCastParentheses: false +SpacesInParentheses: false +SpacesInSquareBrackets: false +TabWidth: 4 +UseTab: true diff --git a/MicroClient.vcxproj b/MicroClient.vcxproj index 2864d66..81d28bf 100644 --- a/MicroClient.vcxproj +++ b/MicroClient.vcxproj @@ -245,6 +245,7 @@ + diff --git a/MicroClient.vcxproj.filters b/MicroClient.vcxproj.filters index ba964c5..7b01e0d 100644 --- a/MicroClient.vcxproj.filters +++ b/MicroClient.vcxproj.filters @@ -103,5 +103,6 @@ Resource Files + \ No newline at end of file