From 7f434f10058fd33819cdba32a4b40311bff21634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Mon, 18 Dec 2017 10:15:27 +0100 Subject: [PATCH] Add basic clang-format configuration that match our current formatting style closest --- .clang-format | 19 +++++++++++++++++++ util/copyrights | 1 + 2 files changed, 20 insertions(+) create mode 100644 .clang-format diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..8f213fec23 --- /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 70aa766f46..84485efe45 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