From 6d9e0b5b3e6daf3ebb6eb54f424ead2ede5371b6 Mon Sep 17 00:00:00 2001 From: Luis Diaz Mas Date: Sat, 4 Nov 2017 08:40:03 +0100 Subject: [PATCH] Add .clang-format file --- .clang-format | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..cac9cee9 --- /dev/null +++ b/.clang-format @@ -0,0 +1,28 @@ +--- +BasedOnStyle: Google +Language: Cpp +Standard: Cpp03 +TabWidth: 4 +UseTab: Never +ColumnLimit: 120 +NamespaceIndentation: All + +AccessModifierOffset: -4 +ContinuationIndentWidth: 4 +IndentWidth: 4 + +BreakBeforeBraces: Custom +BraceWrapping: + AfterStruct: true + AfterClass: true + AfterFunction: true + AfterControlStatement: false + AfterEnum: true + AfterNamespace: true + +AllowShortFunctionsOnASingleLine: None +AllowShortBlocksOnASingleLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false + +...