]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add basic clang-format configuration that match our current formatting style closest
authorOndřej Surý <ondrej@sury.org>
Mon, 18 Dec 2017 09:15:27 +0000 (10:15 +0100)
committerOndřej Surý <ondrej@sury.org>
Wed, 18 Apr 2018 16:38:52 +0000 (09:38 -0700)
.clang-format [new file with mode: 0644]
util/copyrights

diff --git a/.clang-format b/.clang-format
new file mode 100644 (file)
index 0000000..8f213fe
--- /dev/null
@@ -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'
+...
index 70aa766f46c09b70b8be605865bc8637fbe04501..84485efe459832f9ebf81d9f795a35e9099fdb3d 100644 (file)
@@ -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