Skip to content

Commit 344f13f

Browse files
flichtenheldcron2
authored andcommitted
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. Change-Id: Idb1e96a4d0a618089db4290c5980d192985b5d29 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Gert Doering <gert@greenie.muc.de> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1529 Message-Id: <20260216123026.3310-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35635.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
1 parent 6f9ab96 commit 344f13f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ IndentCaseLabels: true
3131
IndentGotoLabels: false
3232
IndentWidth: '4'
3333
IndentWrappedFunctionNames: false
34+
InsertBraces: true
3435
KeepEmptyLinesAtTheStartOfBlocks: false
3536
MaxEmptyLinesToKeep: '2'
3637
PointerAlignment: Right

0 commit comments

Comments
 (0)