aboutsummaryrefslogtreecommitdiff
path: root/ClangFormat
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-04-24 02:49:20 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-05 02:59:45 +0100
commit743221f98585c07eec323f31ce48e49217c4a5f8 (patch)
treecc445179ae29ae104457a355966d7d9f1517241a /ClangFormat
parent2305952defe0b81a18f9c44b9823c3a4e577d6b3 (diff)
downloaddotfiles-743221f98585c07eec323f31ce48e49217c4a5f8.tar.gz
dotfiles-743221f98585c07eec323f31ce48e49217c4a5f8.tar.bz2
dotfiles-743221f98585c07eec323f31ce48e49217c4a5f8.zip
+clang format to dotfiles
A nice and useful tool, so might as well keep it.
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