From: Ondřej Surý Date: Mon, 18 Dec 2017 09:15:27 +0000 (+0100) Subject: Add basic clang-format configuration that match our current formatting style closest X-Git-Tag: v9.13.0~53^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f434f10058fd33819cdba32a4b40311bff21634;p=thirdparty%2Fbind9.git Add basic clang-format configuration that match our current formatting style closest --- diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000000..8f213fec235 --- /dev/null +++ b/.clang-format @@ -0,0 +1,19 @@ +--- +BasedOnStyle: LLVM +BreakBeforeBraces: Linux +IndentWidth: 8 +ContinuationIndentWidth: 8 +Standard: Cpp11 +TabWidth: 8 +UseTab: ForIndentation +ColumnLimit: 80 +IndentCaseLabels: false +AllowShortCaseLabelsOnASingleLine: true +AlignTrailingComments: true +AlignOperands: true +AlignConsecutiveAssignments: true +AlignConsecutiveDeclarations: true +AllowAllParametersOfDeclarationOnNextLine: false +AlwaysBreakAfterDefinitionReturnType: TopLevel +CommentPragmas: 'Copyright' +... diff --git a/util/copyrights b/util/copyrights index 70aa766f46c..84485efe459 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1,3 +1,4 @@ +./.clang-format X 2018 ./.gitattributes X 2015,2017,2018 ./.gitignore X 2012,2013,2014,2015,2016,2017,2018 ./.gitlab-ci.yml X 2018