]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add new clang-format option to remove redundant parentheses
authorOndřej Surý <ondrej@isc.org>
Tue, 19 Nov 2024 09:35:40 +0000 (10:35 +0100)
committerOndřej Surý <ondrej@isc.org>
Tue, 19 Nov 2024 11:27:22 +0000 (12:27 +0100)
The new clang-format option (since 17) can remove redundant parentheses
in the return statement (with configuration value ReturnStatement).

.clang-format
.clang-format.headers

index 54a39fdb4d4fbcd0dc7fabb5374f2f00efa1f73f..5d6deb9871d795746d19d678feedcb286e9ee0b9 100644 (file)
@@ -79,3 +79,4 @@ PenaltyExcessCharacter: 100
 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
index 4b4d091fa2818b29802815e2696eb6e71a8b16c0..0f8ff5ac80cdf68e3dd61173e6be0826ca26f917 100644 (file)
@@ -78,3 +78,4 @@ PenaltyBreakString: 80
 PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
+RemoveParentheses: ReturnStatement