]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
clang-format: Add missing InsertBraces: true
authorFrank Lichtenheld <frank@lichtenheld.com>
Mon, 16 Feb 2026 12:30:20 +0000 (13:30 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 16 Feb 2026 14:29:54 +0000 (15:29 +0100)
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>
.clang-format

index 1cce4c36f09a2ca19f5dbc55e3056b388c71c480..cbec0a46079a0bbf1e569d957b6681cd6cd81be3 100644 (file)
@@ -31,6 +31,7 @@ IndentCaseLabels: true
 IndentGotoLabels: false
 IndentWidth: '4'
 IndentWrappedFunctionNames: false
+InsertBraces: true
 KeepEmptyLinesAtTheStartOfBlocks: false
 MaxEmptyLinesToKeep: '2'
 PointerAlignment: Right