From e95a7fca6001c01d5db47424b47fc100b910bd50 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Tue, 8 May 2018 20:52:44 +0200 Subject: [PATCH] added clang-format config --- clang/clang-format | 35 +++++++++++++++++++++++++++++++++++ clang/install.sh | 4 ++++ 2 files changed, 39 insertions(+) create mode 100644 clang/clang-format create mode 100755 clang/install.sh diff --git a/clang/clang-format b/clang/clang-format new file mode 100644 index 0000000..4b513be --- /dev/null +++ b/clang/clang-format @@ -0,0 +1,35 @@ +Language: Cpp +IndentWidth: 4 +AccessModifierOffset: -4 +ColumnLimit: 80 +UseTab: ForContinuationAndIndentation +TabWidth: 4 + +SortIncludes: false + +AlignAfterOpenBracket: DontAlign + +BreakBeforeBinaryOperators: NonAssignment + +BreakBeforeBraces: Custom +BraceWrapping: + AfterClass: true + AfterStruct: true + AfterFunction: true + AfterNamespace: false + AfterControlStatement: true + BeforeElse: true + BeforeCatch: true + +MaxEmptyLinesToKeep: 1 +Standard: Auto + +IndentCaseLabels: true + +BinPackArguments: true +BinPackParameters: true + +AllowShortFunctionsOnASingleLine: false + +NamespaceIndentation: Inner + diff --git a/clang/install.sh b/clang/install.sh new file mode 100755 index 0000000..058c2ab --- /dev/null +++ b/clang/install.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +ln -svrf clang-format ~/.clang-format +