[Openvpn-devel,v2] .clang-format: Convert deprecated setting KeepEmptyLinesAtTheStartOfBlocks
| Message ID | 20260820101226.9581-1-gert@greenie.muc.de |
|---|---|
| State | New |
| Headers |
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net>
Delivered-To: patchwork@openvpn.net
Received: by 2002:a05:7000:4319:b0:87d:ab56:3700 with SMTP id
q25csp1624203mae;
Thu, 20 Aug 2026 03:12:42 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AHgh+Rq3o4s30oA1zJYXJEu4f4e+VyGvuOut6D3imun0WGlj0BfMirX5xUX3b3NqOFEEQXyoZNcqhD/4/Zc=@openvpn.net
X-Received: by 2002:a05:6830:651c:b0:7e6:8955:c52d with SMTP id
46e09a7af769-7f43f94dee6mr11909131a34.5.1787220762724;
Thu, 20 Aug 2026 03:12:42 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1787220762; cv=none;
d=google.com; s=arc-20260327;
b=JTyCQIxH/vKYMP+HILVI6zqwsifWiHSRyIWPkwm9Qg4Tzz9qhPSP0RXrwcVi7VvfFN
yVJweqO8Tz/uEefAm3z+k31IPpHkr4r3xZ5cEUI8s20a5phO8Zxi5vGKoHliHflLOTr7
3dcl5qdMY1OjQWtBpNYjEerNJjSVqxsiXbKkmIBk0PLkgA8f2wbwG9hu7pH74FRq7kiF
DjoCNPshVkUxMYrvIGAMfM6PWAlcU6DHZXQDgEfxek+V2P4cwz3WBDhln+1sGA5gbJDd
VMjoe193dxz/5rSh78KBNQBG924sW2hBHsjsGRISkBIZwdUsa/q9NGuZEWqZPh3f2WOm
ySEQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20260327;
h=errors-to:content-transfer-encoding:list-subscribe:list-help
:list-post:list-archive:list-unsubscribe:list-id:precedence:subject
:mime-version:references:in-reply-to:message-id:date:to:from
:dkim-signature:dkim-signature:dkim-signature;
bh=vbeBxzqAepZIy+j3e0HePR/OYtk5S2NWJYviPAJaMQk=;
fh=4NbAC/LsuMLI0S0hprUlLSLCiHwg6SCAifhH718Jh0Q=;
b=f+k51cj+rphSPw5+Llzesv9E6+mUxFbOoCWg/3l46EcFAn1VeKjGNIaSX80rkvblF9
s2JNle3x0kmZPjbq1I4vxhuSsQw8j/uIELx+x/4pOD+7xo5PydbEjVwLiLeXgj+UY0o2
uukPOxOMR7dmpN7RTMDhKT8cBF+5qsm2L2Tt0q9SehQEB49gAwJiPP8sKKqZvHxHlkeK
f+sA2wicEf1epRxzQCyxqCUBvC13aEJdZq/80y1ImA0DFlg4wMSnJUl2cFl1NEuwppGB
5x3oawbs5jWou6PJTiK7LcmT9nYUHxriHpS5JbP9zEXGi57cFm+T3Yu7uF0sQoOIG/gK
mQBg==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=bkbKdgk+;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=OzJMRv2M;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=PQGBFICM;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7])
by mx.google.com with ESMTPS id
46e09a7af769-7f44002fc02si10471526a34.90.2026.08.20.03.12.41
(version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
Thu, 20 Aug 2026 03:12:42 -0700 (PDT)
Received-SPF: pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) client-ip=216.105.38.7;
Authentication-Results: mx.google.com;
dkim=pass header.i=@lists.sourceforge.net header.s=beta
header.b=bkbKdgk+;
dkim=neutral (body hash did not verify) header.i=@sourceforge.net
header.s=x header.b=OzJMRv2M;
dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x
header.b=PQGBFICM;
spf=pass (google.com: domain of
openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as
permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net;
dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=muc.de
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:
List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:
Subject:MIME-Version:References:In-Reply-To:Message-ID:Date:To:From:Sender:
Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner;
bh=vbeBxzqAepZIy+j3e0HePR/OYtk5S2NWJYviPAJaMQk=; b=bkbKdgk+zFFtKLvStZWSPmE1UD
7oGWM5XBIkts5OysjiKoE2wlJOE0b+kWa2ev5JkCxDtykk0e93xF9anN9yGR506V019/lx4vYpQvg
/UDd6m+sWiZ5+0emESsxuR8LxYwBNwd/27xiZnMGUtNtQJaaFjfWtSA9caaiwhP2go34=;
Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com)
by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95)
(envelope-from <openvpn-devel-bounces@lists.sourceforge.net>)
id 1wwzlH-00080l-47;
Thu, 20 Aug 2026 10:12:36 +0000
Received: from [172.30.29.66] (helo=mx.sourceforge.net)
by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls
TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
(envelope-from <gert@blue4.greenie.muc.de>) id 1wwzlF-00080e-Hq
for openvpn-devel@lists.sourceforge.net;
Thu, 20 Aug 2026 10:12:35 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References:
In-Reply-To:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:
Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=MdL+gSRTIIsxHz1mAu72q9pinRCL3fRXdMIUd0s0K4I=; b=OzJMRv2MLEzjjA/1A4BXSRBNU5
0sDiTza4HQOUoj/s1GBCyJUVNj3bKNCdZB0DzSM7j5u/JGV1xBlKqFolRmE7YdE50jHiSjXUG8hfa
ghg8q6l1dQLPYD8bnlsTkB1Hw+FsfevBe8ByfasslBkKvnipPzBVpKhG7nx1vKon925k=;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x
;
h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:
Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe:
List-Post:List-Owner:List-Archive;
bh=MdL+gSRTIIsxHz1mAu72q9pinRCL3fRXdMIUd0s0K4I=; b=PQGBFICMOj9uV+8WL0yKeENof0
cpAmBcpdQYwJq4T7bkrphVJvjb0D6n3IlZGMNpVO6rYr2oig6vyBFTMN/alunQqApS9ONpkYrqqO6
DR1bNSgg/eNE6Cte7lfGvwt1AuaXKx9DwXnQkxBr2+CbRnq5r+BwJt8y9jKc90pGaQFA=;
Received: from [193.149.48.129] (helo=blue.greenie.muc.de)
by sfi-mx-1.v28.lw.sourceforge.com with esmtps
(TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95)
id 1wwzlB-0004jh-76 for openvpn-devel@lists.sourceforge.net;
Thu, 20 Aug 2026 10:12:34 +0000
Received: from blue.greenie.muc.de (localhost [127.0.0.1])
by blue.greenie.muc.de (8.18.1/8.18.1) with ESMTP id 67KACQUB009598
for <openvpn-devel@lists.sourceforge.net>; Thu, 20 Aug 2026 12:12:26 +0200
Received: (from gert@localhost)
by blue.greenie.muc.de (8.18.2/8.18.1/Submit) id 67KACQqj009597
for openvpn-devel@lists.sourceforge.net; Thu, 20 Aug 2026 12:12:26 +0200
From: Gert Doering <gert@greenie.muc.de>
To: openvpn-devel@lists.sourceforge.net
Date: Thu, 20 Aug 2026 12:12:21 +0200
Message-ID: <20260820101226.9581-1-gert@greenie.muc.de>
X-Mailer: git-send-email 2.53.0
In-Reply-To:
<gerrit.1787144531000.Ibb80db0547dcc0935964c9bd40222c27aac80439@gerrit.openvpn.net>
References:
<gerrit.1787144531000.Ibb80db0547dcc0935964c9bd40222c27aac80439@gerrit.openvpn.net>
MIME-Version: 1.0
X-Spam-Score: 1.3 (+)
X-Spam-Report: Spam detection software,
running on the system "sfi-spamd-1.hosts.colo.sdot.me",
has NOT identified this incoming email as spam. The original
message has been attached to this so you can view it or label
similar future email. If you have any questions, see
the administrator of that system for details.
Content preview: From: Frank Lichtenheld <frank@lichtenheld.com> Convert to
new KeepEmptyLines settings. This adds AtStartOfFile setting and applies
it. Change-Id: Ibb80db0547dcc0935964c9bd40222c27aac80439 Signed-off-by: Frank
Lichtenheld <frank@lichtenheld.com> Acked-by: Razvan Cojocaru
<razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/o [...]
Content analysis details: (1.3 points, 5.0 required)
pts rule name description
---- ----------------------
--------------------------------------------------
1.3 RDNS_NONE Delivered to internal network by a host with no rDNS
X-Headers-End: 1wwzlB-0004jh-76
Subject: [Openvpn-devel] [PATCH v2] .clang-format: Convert deprecated
setting KeepEmptyLinesAtTheStartOfBlocks
X-BeenThere: openvpn-devel@lists.sourceforge.net
X-Mailman-Version: 2.1.21
Precedence: list
List-Id: <openvpn-devel.lists.sourceforge.net>
List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe>
List-Archive:
<http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel>
List-Post: <mailto:openvpn-devel@lists.sourceforge.net>
List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help>
List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>,
<mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: openvpn-devel-bounces@lists.sourceforge.net
X-getmail-retrieved-from-mailbox: Inbox
X-GMAIL-THRID: 1874036798621433249
X-GMAIL-MSGID: 1874036798621433249
|
| Series |
[Openvpn-devel,v2] .clang-format: Convert deprecated setting KeepEmptyLinesAtTheStartOfBlocks
|
|
Commit Message
Gert Doering
Aug. 20, 2026, 10:12 a.m. UTC
From: Frank Lichtenheld <frank@lichtenheld.com> Convert to new KeepEmptyLines settings. This adds AtStartOfFile setting and applies it. Change-Id: Ibb80db0547dcc0935964c9bd40222c27aac80439 Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Razvan Cojocaru <razvanc@mailbox.org> Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1848 --- 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/+/1848 This mail reflects revision 2 of this Change. Acked-by according to Gerrit (reflected above): Razvan Cojocaru <razvanc@mailbox.org>
Comments
I wouldn't know anything about clang-format, but if Razvan says it's fine
and our buildbots that *do* check the formatting of code-after-patching
do not complain, it sounds correct - and the resulting change, removing
whitespace at the top of these two .h files, also makes sense.
Your patch has been applied to the master and release/2.7 branch
(dev tools, same formatting rules).
commit 34661b1e1e06df3d6bbfdb85a33db87b33a79034 (master)
commit fd89ec74140f7b932ef79a8e7cb5e30d8f23a147 (release/2.7)
Author: Frank Lichtenheld
Date: Thu Aug 20 12:12:21 2026 +0200
.clang-format: Convert deprecated setting KeepEmptyLinesAtTheStartOfBlocks
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Razvan Cojocaru <razvanc@mailbox.org>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1848
Message-Id: <20260820101226.9581-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg38551.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
--
kind regards,
Gert Doering
diff --git a/.clang-format b/.clang-format index 4774d1e..0823739 100644 --- a/.clang-format +++ b/.clang-format @@ -32,7 +32,10 @@ IndentWidth: '4' IndentWrappedFunctionNames: false InsertBraces: true -KeepEmptyLinesAtTheStartOfBlocks: false +KeepEmptyLines: + AtEndOfFile: false + AtStartOfBlock: false + AtStartOfFile: false MaxEmptyLinesToKeep: '2' PointerAlignment: Right ReflowComments: true diff --git a/src/openvpn/crypto_mbedtls.h b/src/openvpn/crypto_mbedtls.h index 04346a9..5c3b670 100644 --- a/src/openvpn/crypto_mbedtls.h +++ b/src/openvpn/crypto_mbedtls.h @@ -1,4 +1,3 @@ - /* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based diff --git a/src/openvpnserv/validate.h b/src/openvpnserv/validate.h index 12150f1..2da41dc 100644 --- a/src/openvpnserv/validate.h +++ b/src/openvpnserv/validate.h @@ -1,4 +1,3 @@ - /* * OpenVPN -- An application to securely tunnel IP networks * over a single TCP/UDP port, with support for SSL/TLS-based