From 4aa257a1c44374938cbb2afc0caad2e853b09816 Mon Sep 17 00:00:00 2001 From: Kunal Tyagi Date: Mon, 8 Jul 2019 00:43:23 +0900 Subject: [PATCH] Adding clang-format config --- .clang-format | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..861623723f0 --- /dev/null +++ b/.clang-format @@ -0,0 +1,23 @@ +--- +AlwaysBreakAfterReturnType: All +AlwaysBreakTemplateDeclarations: true +BinPackArguments: false +BinPackParameters: false +BraceWrapping: + AfterFunction: true + AfterClass: false + AfterStruct: false + BeforeElse: true + SplitEmptyFunction: false + SplitEmptyRecord: false + SplitEmptyNamespace: false +BreakBeforeBraces: Custom +BreakConstructorInitializers: BeforeComma +ColumnLimit: 88 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 0 +Language: Cpp +PointerAlignment: Left +Standard: Cpp11 +TabWidth: 2 +UseTab: Never