References: <1ffbd3a5-8fa8-8992-2c3d-d353898d74f9@...2080...> <943c0ce1-501c-df5a-fb47-53ab7a689d36@...2080...> <75c5efa8-346f-f2ca-57bd-4b3e38364a27@...1856...> From: David Sommerseth Message-ID: <58af87c9-8b62-13cb-dfea-5642ab36c97f@...2080...> Date: Tue, 13 Dec 2016 21:59:25 +0100 MIME-Version: 1.0 In-Reply-To: <75c5efa8-346f-f2ca-57bd-4b3e38364a27@...1856...> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="l5lk83PGTAd5UchVnVmKvAJtVRsVD70ru" Subject: Re: [Openvpn-devel] Coding style clean-up ... phase 1 Reply-To: openvpn-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Steffan Karger , Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --l5lk83PGTAd5UchVnVmKvAJtVRsVD70ru Content-Type: multipart/mixed; boundary="k0VF7icEij2kaXFqc1VI2U2DU93MTiAgv"; protected-headers="v1" From: David Sommerseth Reply-To: openvpn-devel@lists.sourceforge.net To: Steffan Karger , Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" Message-ID: <58af87c9-8b62-13cb-dfea-5642ab36c97f@...2080...> Subject: Re: [Openvpn-devel] Coding style clean-up ... phase 1 References: <1ffbd3a5-8fa8-8992-2c3d-d353898d74f9@...2080...> <943c0ce1-501c-df5a-fb47-53ab7a689d36@...2080...> <75c5efa8-346f-f2ca-57bd-4b3e38364a27@...1856...> In-Reply-To: <75c5efa8-346f-f2ca-57bd-4b3e38364a27@...1856...> --k0VF7icEij2kaXFqc1VI2U2DU93MTiAgv Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable On 13/12/16 21:10, Steffan Karger wrote: > Hi, >=20 > On 13-12-16 20:54, Selva Nair wrote: >> >> On Tue, Dec 13, 2016 at 1:55 PM, Steffan Karger > > wrote: >> >> > >> > On 09/12/16 22:27, Steffan Karger wrote: >> > > >> > > Sounds like we have a final config on the CodeStyle page now= . Are we >> > > ready to run it on all code now, and publish a reformat bran= ch? >> > > >> > >> > Agreed. I can do this later this night. >> > >> > Wait a minute we may need cmt_cpp_to_c=3Dtrue -- I saw some C++ c= omments >> > (added by uncrustify) in header files against #endif etc.. >> >> Indeed, tested and added to the CodeStyle page. Anyone up for creat= ing >> the reformatting branch? >> >> >> I did some test over the weekend. For what its worth just pushed the bra= nch=20 >> to https://github.com/selvanair/openvpn/tree/uncrustify >> >> This uses all options at the CodeStyle page plus >> sp_bool=3Dadd >=20 > This makes sense. >=20 >> sp_arith=3Dadd >=20 > I think we agreed on IRC to not touch arithmetic spacing, because > clarity really depends on the code. Ouch ... there were a few places, where this really needed to be cleaned up, otherwise it was really not good. >> pos_bool=3Dlead >=20 > What does this do exactly? The description "The position of boolean > operators in wrapped expressions" from --show-config doesn't ring a bell If it breaks a boolean expression over more lines, the operator comes as the lead character on the following line i =3D TEST1 | TEST2 | TEST3 instead of i =3D TEST1 | TEST2 | TEST3 --=20 kind regards, David Sommerseth OpenVPN Technologies, Inc --k0VF7icEij2kaXFqc1VI2U2DU93MTiAgv-- --l5lk83PGTAd5UchVnVmKvAJtVRsVD70ru Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJYUGEtAAoJEIbPlEyWcf3y/L4P/0o3lK/dnNgU/6bHrQ/EIg7G KWY3FMOEdHoOpry2HPgZOW8fr0ByQ6OfCRjl1dUg+6u9l5V/13ZXiiLKWmnB9hXx +8PTXgQaGtJe86RP7AiNNmVV0rPCbo/ZGkHBJYJAGzFg4znQZqmncl9J1bTKw0o/ L3Y37wV6gAMDOaDxQ9dNFR8lNIpdYCVNqF1I0X9l/8jvv+/BmBM7LVj142rds0c9 /KyLMDikjaUwS86k4vHhwVVnfxfZYmixVD0rz//2qePZ3kHlBmBKrYjWSkskz43e CPng3UJSKP0prIZRr7rOWiGaeEwq6q9Wo5am3YiXO54Qac+rN21fyImwyaj4Cp/W 58RjCp0oIksszxvp+j40BIqlCQJUvMmuDAWzTIlDnl+N70h427k+jJyeEskDBMzY upEmk6e/67Sr6x5Tn25PkipT10SLi8FWb2Lnd9RK4Nrc5LiDjvaeo+28EKDXK1AQ hlc22gq4fG+rsCt3zsxlO1lANWGZmM4NGsnseaWFC2lhrJbXZOday+raj+y2nn79 1tgBfCE/ObNJUquIJDM0g2912G9xWigjw30BfXXVZ4CKCNixAN/1hd+ocUFEQtZk flOqh2s8eKuFVhS+GYxEIaRjbdfQQm1L5e/O412R1/GvP0iDNsBIlzAb7WoV53vw jrBzJuWp6Y0MLBVp6nHH =Lvar -----END PGP SIGNATURE----- --l5lk83PGTAd5UchVnVmKvAJtVRsVD70ru--