From e730dfdb6f5f0a87ead29b9e2021ca8ebd75988a Mon Sep 17 00:00:00 2001 From: Serge Lamikhov-Center Date: Fri, 21 Aug 2020 10:52:53 +0300 Subject: [PATCH] Add .clang-format --- .clang-format | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000..14aba60 --- /dev/null +++ b/.clang-format @@ -0,0 +1,27 @@ +{ + BasedOnStyle : LLVM, + + AlignConsecutiveAssignments : true, + AlignConsecutiveDeclarations : true, + AlignConsecutiveMacros : true, + AlignEscapedNewlines : true, + AlignOperands : true, + AlignTrailingComments : true, + + UseTab : Never, + IndentWidth : 4, + TabWidth : 4, + BreakBeforeBraces : Stroustrup, + AllowShortIfStatementsOnASingleLine : false, + IndentCaseLabels : false, + ColumnLimit : 90, + AccessModifierOffset : -4, + NamespaceIndentation : Inner, + PointerAlignment : Left, + FixNamespaceComments : true, + SortIncludes : false, + + ReflowComments : false, + SpacesInConditionalStatement : true, + SpacesInParentheses : true, +}