+clang format to dotfiles

A nice and useful tool, so might as well keep it.
This commit is contained in:
dx
2020-04-24 02:49:20 +01:00
parent 2305952def
commit 743221f985

21
ClangFormat/.clang-format Normal file
View File

@@ -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