]> 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 11:27:22 +0000 (12:27 +0100)
The new clang-format options (since clang-format 16) removes semicolons
after the closing braces of functions and constructors/destructors.

.clang-format
.clang-format.headers

index 5d6deb9871d795746d19d678feedcb286e9ee0b9..7bd90052abb56d790ae79d47c45721a657a68222 100644 (file)
@@ -80,3 +80,4 @@ Standard: Cpp11
 ContinuationIndentWidth: 8
 ForEachMacros: [ 'cds_lfs_for_each', 'cds_lfs_for_each_safe', 'cds_list_for_each_entry_safe', 'ISC_LIST_FOREACH', 'ISC_LIST_FOREACH_SAFE', 'ISC_LIST_FOREACH_REV', 'ISC_LIST_FOREACH_REV_SAFE' ]
 RemoveParentheses: ReturnStatement
+RemoveSemicolon: true
index 0f8ff5ac80cdf68e3dd61173e6be0826ca26f917..f5a5bae64e955ac0fa9f563f452fe692eb5577fa 100644 (file)
@@ -79,3 +79,4 @@ PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
 RemoveParentheses: ReturnStatement
+RemoveSemicolon: true