From 25cb68e25382142514cbe7af6fa39c0a71d03e42 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Tue, 1 Oct 2013 21:35:19 +0200 Subject: [PATCH] add clang-format file ... --- .clang-format | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..a204f046 --- /dev/null +++ b/.clang-format @@ -0,0 +1,32 @@ +BasedOnStyle: LLVM + +AccessModifierOffset: 0 +AlignEscapedNewlinesLeft: false +AlignTrailingComments: true +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortIfStatementsOnASingleLine: true +AllowShortLoopsOnASingleLine: true +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: false +BinPackParameters: true +BreakBeforeBinaryOperators: false +BreakBeforeBraces: Attach +ColumnLimit: 130 +ConstructorInitializerAllOnOneLineOrOnePerLine: true +ConstructorInitializerIndentWidth: 3 +Cpp11BracedListStyle: true +DerivePointerBinding : true +IndentCaseLabels: true +#IndentFunctionDeclarationAfterType:true +IndentWidth: 1 +MaxEmptyLinesToKeep: 3 +NamespaceIndentation : Inner +PointerBindsToType: true +SpaceAfterControlStatementKeyword: true +SpaceBeforeAssignmentOperators: true +SpaceInEmptyParentheses: false +SpacesInParentheses: false +Standard: Cpp11 +TabWidth: 1 +UseTab: Never +