From dffefc69bf9d0b9754e1a8b1426be9c51c8e5eb1 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Fri, 4 May 2018 15:46:17 +0800 Subject: add .clang-format and .dir-locals.el --- .clang-format | 12 ++++++++++++ .dir-locals.el | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 .clang-format create mode 100644 .dir-locals.el diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..3e9f955 --- /dev/null +++ b/.clang-format @@ -0,0 +1,12 @@ +BasedOnStyle: LLVM +Language: Cpp +IndentWidth: 8 +UseTab: Always +BreakBeforeBraces: Linux +AllowShortIfStatementsOnASingleLine: false +IndentCaseLabels: false +SortIncludes: false +ContinuationIndentWidth: 8 +ColumnLimit: 80 +Cpp11BracedListStyle: false +ReflowComments: false diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..9828d2c --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,7 @@ +((c++-mode + (c-file-style . "linux") + (eval . (progn + (c-set-offset 'innamespace '0) + (c-set-offset 'inline-open '0)))) + (c-mode + (c-file-style . "linux"))) -- cgit v1.2.3