From 67305ffb5de865f872898c03cbacd189c9e9aa53 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 29 Mar 2017 17:34:50 +0200 Subject: lint: src/.clang-format Move to top level so that clang-format -style=file can find it regardless of current directory. --- .clang-format | 20 ++++++++++++++++++++ src/.clang-format | 18 ------------------ 2 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 .clang-format delete mode 100644 src/.clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..ff61915aac --- /dev/null +++ b/.clang-format @@ -0,0 +1,20 @@ +BasedOnStyle: Google +Language: Cpp +ColumnLimit: 80 +IndentWidth: 2 +TabWidth: 2 +UseTab: Never +IndentCaseLabels: true +BreakBeforeBraces: Linux +AlignEscapedNewlinesLeft: false +AllowShortFunctionsOnASingleLine: false +AlignTrailingComments: true +SpacesBeforeTrailingComments: 2 +PenaltyReturnTypeOnItsOwnLine: 200 +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortIfStatementsOnASingleLine: false +AllowShortLoopsOnASingleLine: false +BinPackParameters: false +BreakBeforeBinaryOperators: true +BreakBeforeTernaryOperators: true +ContinuationIndentWidth: 4 diff --git a/src/.clang-format b/src/.clang-format deleted file mode 100644 index 5a910ff34b..0000000000 --- a/src/.clang-format +++ /dev/null @@ -1,18 +0,0 @@ -BasedOnStyle: Google -Language: Cpp -ColumnLimit: 80 -IndentWidth: 2 -TabWidth: 2 -UseTab: Never -IndentCaseLabels: true -BreakBeforeBraces: Linux -AlignEscapedNewlinesLeft: false -AllowShortFunctionsOnASingleLine: false -SpacesBeforeTrailingComments: 2 -PenaltyReturnTypeOnItsOwnLine: 200 -AllowAllParametersOfDeclarationOnNextLine: false -AllowShortIfStatementsOnASingleLine: false -AllowShortLoopsOnASingleLine: false -BinPackParameters: false -BreakBeforeBinaryOperators: true -ContinuationIndentWidth: 4 -- cgit