diff options
author | dx <aryadevchavali1@gmail.com> | 2020-04-24 02:49:20 +0100 |
---|---|---|
committer | dx <aryadevchavali1@gmail.com> | 2020-05-05 02:59:45 +0100 |
commit | 743221f98585c07eec323f31ce48e49217c4a5f8 (patch) | |
tree | cc445179ae29ae104457a355966d7d9f1517241a /ClangFormat | |
parent | 2305952defe0b81a18f9c44b9823c3a4e577d6b3 (diff) | |
download | dotfiles-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-format | 21 |
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 |