Change in openvpn[master]: clang-format: Add missing InsertBraces: true
A message that is not in the archive (sent off-list or not yet received): gerrit.1771244685000.Idb1e96a4d0a618089db4290c5980d192985b5d29@...2715...
Attention is currently required from: plaisthos.
Hello plaisthos,
I'd like you to do a code review.
Please visit
http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email
to review the following change.
Change subject: clang-format: Add missing InsertBraces: true
......................................................................
clang-format: Add missing InsertBraces: true
This takes care to add missing braces in
case of one-line if-statements or loops.
Apparently we never tested this specific error
and we had no existing cases in the code when
we did the reformat. Noticed this during a code
review.
---
M .clang-format
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/1529/1
.clang-format +1 -0
@@ -31,6 +31,7 @@ IndentGotoLabels: false IndentWidth: '4' IndentWrappedFunctionNames: false +InsertBraces: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb1e96a4d0a618089db4290c5980d192985b5d29
Gerrit-Change-Number: 1529
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Attention is currently required from: flichtenheld, plaisthos.
cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email )
Change subject: clang-format: Add missing InsertBraces: true
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb1e96a4d0a618089db4290c5980d192985b5d29
Gerrit-Change-Number: 1529
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 16 Feb 2026 12:29:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
PATCH 1/1 clang-format: Add missing InsertBraces: true
In reply to a message not in the archiveFrom: Frank Lichtenheld <[email protected]...>
This takes care to add missing braces in
case of one-line if-statements or loops.
Apparently we never tested this specific error
and we had no existing cases in the code when
we did the reformat. Noticed this during a code
review.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529
---
This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529
This mail reflects revision 1 of this Change.
Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>
.clang-format +1 -0
@@ -31,6 +31,7 @@ IndentGotoLabels: false IndentWidth: '4' IndentWrappedFunctionNames: false +InsertBraces: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right
[Openvpn-devel] [PATCH applied] Re: clang-format: Add missing InsertBraces: true
Yeah. Interesting that this seems to be one the few things where "not set" means "leave either formatting alone" - so, since the existing code base was already clean wrt braces, nobody noticed... good catch.
Your patch has been applied to the master and release/2.7 branch (the coding style is identical, so the formatting rules also need to be).
commit 344f13fcdfc159277e7ba7d28e23537d718e7cef (master) commit 6edd5fee44fd0c2b1b338e90b329054db6313c90 (release/2.7)
Author: Frank Lichtenheld Date: Mon Feb 16 13:30:20 2026 +0100
clang-format: Add missing InsertBraces: true
Signed-off-by: Frank Lichtenheld <[email protected]...>
Acked-by: Gert Doering <[email protected]...>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35635.html
Signed-off-by: Gert Doering <[email protected]...>--
kind regards,
Gert Doering
cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email )
The following approvals got outdated and were removed:
Code-Review+2 by cron2
Change subject: clang-format: Add missing InsertBraces: true
......................................................................
clang-format: Add missing InsertBraces: true
This takes care to add missing braces in
case of one-line if-statements or loops.
Apparently we never tested this specific error
and we had no existing cases in the code when
we did the reformat. Noticed this during a code
review.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35635.html
---
M .clang-format
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/29/1529/2
.clang-format +1 -0
@@ -31,6 +31,7 @@ IndentGotoLabels: false IndentWidth: '4' IndentWrappedFunctionNames: false +InsertBraces: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb1e96a4d0a618089db4290c5980d192985b5d29
Gerrit-Change-Number: 1529
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email )
Change subject: clang-format: Add missing InsertBraces: true
......................................................................
clang-format: Add missing InsertBraces: true
This takes care to add missing braces in
case of one-line if-statements or loops.
Apparently we never tested this specific error
and we had no existing cases in the code when
we did the reformat. Noticed this during a code
review.
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg35635.html
---
M .clang-format
1 file changed, 1 insertion(+), 0 deletions(-)
.clang-format +1 -0
@@ -31,6 +31,7 @@ IndentGotoLabels: false IndentWidth: '4' IndentWrappedFunctionNames: false +InsertBraces: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1529?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Idb1e96a4d0a618089db4290c5980d192985b5d29
Gerrit-Change-Number: 1529
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>