From f01bc7136299ace3ea085c4381bbfecc4b395aed Mon Sep 17 00:00:00 2001 From: lichao <lichao@aiotlink.com> Date: 星期三, 31 三月 2021 10:36:15 +0800 Subject: [PATCH] add vscode .clang-format rule file. --- .clang-format | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..fd84ae9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,23 @@ +BasedOnStyle: LLVM +UseTab: ForIndentation +IndentWidth: 4 +TabWidth: 4 +ColumnLimit: 0 +AllowShortIfStatementsOnASingleLine: true +AllowShortCaseLabelsOnASingleLine: true +AllowShortBlocksOnASingleLine: true +AllowShortEnumsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AllowShortLambdasOnASingleLine: true +AllowShortFunctionsOnASingleLine: true +BreakBeforeBraces: Linux +IndentCaseLabels: false +AccessModifierOffset: -4 +BreakConstructorInitializers: AfterColon +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AlignTrailingComments: true +AlignEscapedNewlinesLeft: true +PointerAlignment: Right +SpaceAfterCStyleCast: true + -- Gitblit v1.8.0