]> 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 15:06:12 +0000 (16:06 +0100)
The new clang-format option (since 17) can remove redundant parentheses
in the return statement (with configuration value ReturnStatement).

(cherry picked from commit 3873b0c279b782fbbb7b7e544fc4151624610385)

.clang-format
.clang-format.headers

index 41a90bf5bb04ee2de1349fd90da4c7648b9cc3e1..9381b501f1f67808a5e8a9c23a4db0a6352c03e2 100644 (file)
@@ -76,3 +76,4 @@ PenaltyBreakString: 80
 PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
+RemoveParentheses: ReturnStatement
index 1306bb21489e39b20695df12dd91c9156875621c..4043abbd46279d6efb936a511d0f070fe08d176f 100644 (file)
@@ -64,3 +64,4 @@ PenaltyBreakString: 80
 PenaltyExcessCharacter: 100
 Standard: Cpp11
 ContinuationIndentWidth: 8
+RemoveParentheses: ReturnStatement