From 743221f98585c07eec323f31ce48e49217c4a5f8 Mon Sep 17 00:00:00 2001 From: dx Date: Fri, 24 Apr 2020 02:49:20 +0100 Subject: +clang format to dotfiles A nice and useful tool, so might as well keep it. --- ClangFormat/.clang-format | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ClangFormat/.clang-format (limited to 'ClangFormat') 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 -- cgit v1.2.3-13-gbd6f