summaryrefslogtreecommitdiff
path: root/.clang-format
diff options
context:
space:
mode:
authorShen-Ta Hsieh <ibmibmibm.tw@gmail.com>2020-05-27 18:55:24 +0800
committerShen-Ta Hsieh <ibmibmibm.tw@gmail.com>2020-05-27 18:58:55 +0800
commitc5f80dc543cdc0198a5bd853e29e1d42195fc526 (patch)
treecdef2d95bc23f9516c78e0c3590645f28aeac369 /.clang-format
parent6cc58ccb9b53a00462ea1bd11e7fc449357a8670 (diff)
Add .clang-format
Diffstat (limited to '.clang-format')
-rw-r--r--.clang-format17
1 files changed, 17 insertions, 0 deletions
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