From: Gert Doering Date: Mon, 16 Feb 2026 13:30:20 +0100 Message-ID: <20260216123026.3310-1-gert@...1296...> In-Reply-To: References: MIME-Version: 1.0 Subject: [Openvpn-devel] [PATCH v1] clang-format: Add missing InsertBraces: true List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net From: Frank Lichtenheld 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 Acked-by: Gert Doering 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 diff --git a/.clang-format b/.clang-format index 1cce4c3..cbec0a4 100644 --- a/.clang-format +++ b/.clang-format @@ -31,6 +31,7 @@ IndentGotoLabels: false IndentWidth: '4' IndentWrappedFunctionNames: false +InsertBraces: true KeepEmptyLinesAtTheStartOfBlocks: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right