diff options
author | Iru Cai <mytbk920423@gmail.com> | 2018-05-04 15:46:17 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2018-05-04 19:45:57 +0800 |
commit | dffefc69bf9d0b9754e1a8b1426be9c51c8e5eb1 (patch) | |
tree | ae537d6fcf883e9e8590c280de0ecde5ea38ba05 | |
parent | 64a8ae735ba3c24d8817e32cb9397c07647fd9c8 (diff) | |
download | fqterm-dffefc69bf9d0b9754e1a8b1426be9c51c8e5eb1.tar.xz |
add .clang-format and .dir-locals.el
-rw-r--r-- | .clang-format | 12 | ||||
-rw-r--r-- | .dir-locals.el | 7 |
2 files changed, 19 insertions, 0 deletions
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"))) |