aboutsummaryrefslogtreecommitdiff
path: root/ClangFormat
diff options
context:
space:
mode:
Diffstat (limited to 'ClangFormat')
-rw-r--r--ClangFormat/.clang-format21
1 files changed, 21 insertions, 0 deletions
diff --git a/ClangFormat/.clang-format b/ClangFormat/.clang-format
new file mode 100644
index 0000000..7c41ad6
--- /dev/null
+++ b/ClangFormat/.clang-format
@@ -0,0 +1,21 @@
+# .clang-format -*- mode: yaml; lexical-binding: t; -*-
+BasedOnStyle: LLVM
+IndentWidth: 2
+AccessModifierOffset: -2
+AlignAfterOpenBracket: Align
+AllowShortLambdasOnASingleLine: Empty
+AlwaysBreakTemplateDeclarations: Yes
+BreakBeforeBraces: Custom
+NamespaceIndentation: All
+BraceWrapping:
+ AfterEnum: true
+ AfterStruct: true
+ AfterFunction: true
+ AfterNamespace: true
+ AfterUnion: true
+ AfterControlStatement: true
+ AfterExternBlock: true
+ BeforeCatch: true
+ BeforeElse: true
+ IndentBraces: false
+ SplitEmptyFunction: true