From 26b666203e26bf77af8eee68d511a1d8a2bb5668 Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Tue, 13 Dec 2016 14:50:14 +0100 Subject: [PATCH] Add a clang-format config file This helps with formatting sources to be closer to the coding style explained in CONTRIBUTING.md. It's not perfect, but provides a reasonable base. Signed-off-by: Gergely Nagy --- .clang-format | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..9c4d305 --- /dev/null +++ b/.clang-format @@ -0,0 +1,25 @@ +--- +Language: Cpp +BasedOnStyle: WebKit +AllowShortFunctionsOnASingleLine: false +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterClass: false + AfterControlStatement: false + AfterEnum: false + AfterFunction: true + AfterNamespace: false + AfterObjCDeclaration: false + AfterStruct: false + AfterUnion: false + BeforeCatch: false + BeforeElse: false + IndentBraces: false +BreakBeforeBraces: Custom +Cpp11BracedListStyle: true +PointerAlignment: Right +ReflowComments: false +SortIncludes: false +TabWidth: 4 +...