From 29e93e00b48e955c2732b11993e64b64fa6d40c8 Mon Sep 17 00:00:00 2001 From: starlord Date: Fri, 27 Sep 2019 20:18:07 +0800 Subject: [PATCH] code stype xml Former-commit-id: 811cc247f82d0aba97e6dd491cb5d5003e545f1d --- .clang-format | 5 ++++ cpp/build-support/code_style_clion.xml | 39 ++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 cpp/build-support/code_style_clion.xml diff --git a/.clang-format b/.clang-format index 819c2d361e..1e124f7be8 100644 --- a/.clang-format +++ b/.clang-format @@ -18,3 +18,8 @@ BasedOnStyle: Google DerivePointerAlignment: false ColumnLimit: 120 +IndentWidth: 4 +AccessModifierOffset: -3 +AlwaysBreakAfterReturnType: All +AllowShortBlocksOnASingleLine: false +AllowShortFunctionsOnASingleLine: false diff --git a/cpp/build-support/code_style_clion.xml b/cpp/build-support/code_style_clion.xml new file mode 100644 index 0000000000..4c7dc4718c --- /dev/null +++ b/cpp/build-support/code_style_clion.xml @@ -0,0 +1,39 @@ + + + + + + \ No newline at end of file