From a0dc91f86d2be5884c6f99523bd2e682a5d5bb98 Mon Sep 17 00:00:00 2001 From: yifang Date: Thu, 10 Feb 2022 19:52:16 +0800 Subject: [PATCH] format:add clang format file --- .clang-format | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..47b907a1 --- /dev/null +++ b/.clang-format @@ -0,0 +1,15 @@ +# Format Style Options - Created with Clang Power Tools +--- +AllowShortFunctionsOnASingleLine: None +AllowShortIfStatementsOnASingleLine: true +BasedOnStyle: LLVM +BinPackParameters: false +BinPackArguments: false +BreakBeforeBraces: Allman +BreakConstructorInitializers: AfterColon +ColumnLimit: 160 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth : 2 +ContinuationIndentWidth: 2 +MaxEmptyLinesToKeep: 2 +...