]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add new clang-format option to remove redundant semicolons
authorOndřej Surý <ondrej@isc.org>
Tue, 19 Nov 2024 09:39:47 +0000 (10:39 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 19 Nov 2024 15:06:49 +0000 (16:06 +0100)
The new clang-format options (since clang-format 16) removes semicolons
after the closing braces of functions and constructors/destructors.

(cherry picked from commit c7420eccd9b169dd0fd8864f192373a3390988af)

.clang-format
.clang-format.headers

index 9381b501f1f67808a5e8a9c23a4db0a6352c03e2..e2fc2068a90b6e3122a27e86bd9c2c243eddcd66 100644 (file)
@@ -77,3 +77,4 @@ PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
 RemoveParentheses: ReturnStatement
+RemoveSemicolon: true
index 4043abbd46279d6efb936a511d0f070fe08d176f..8a4f06661d5e4dffde7b8af2004a29cad4f08294 100644 (file)
@@ -65,3 +65,4 @@ PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
 RemoveParentheses: ReturnStatement
+RemoveSemicolon: true