From c5f80dc543cdc0198a5bd853e29e1d42195fc526 Mon Sep 17 00:00:00 2001 From: Shen-Ta Hsieh Date: Wed, 27 May 2020 18:55:24 +0800 Subject: [PATCH] Add .clang-format --- .clang-format | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 000000000..5e4b24ca4 --- /dev/null +++ b/.clang-format @@ -0,0 +1,17 @@ +BasedOnStyle: LLVM +AccessModifierOffset: -8 +AllowAllConstructorInitializersOnNextLine: false +AlwaysBreakTemplateDeclarations: Yes +BraceWrapping: + AfterFunction: true + SplitEmptyFunction: true +BreakConstructorInitializers: BeforeColon +ColumnLimit: 90 +ConstructorInitializerIndentWidth: 0 +ContinuationIndentWidth: 8 +IndentCaseLabels: false +IndentPPDirectives: AfterHash +IndentWidth: 8 +Standard: c++17 +TabWidth: 8 +UseTab: Always