References: <1ffbd3a5-8fa8-8992-2c3d-d353898d74f9@...2080...> <943c0ce1-501c-df5a-fb47-53ab7a689d36@...2080...> From: Steffan Karger Message-ID: <75c5efa8-346f-f2ca-57bd-4b3e38364a27@...1856...> Date: Tue, 13 Dec 2016 21:10:54 +0100 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] Coding style clean-up ... phase 1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit To: Selva Nair Cc: "openvpn-devel@lists.sourceforge.net" Hi, 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 branch? > > > > > > > Agreed. I can do this later this night. > > > > Wait a minute we may need cmt_cpp_to_c=true -- I saw some C++ comments > > (added by uncrustify) in header files against #endif etc.. > > Indeed, tested and added to the CodeStyle page. Anyone up for creating > the reformatting branch? > > > I did some test over the weekend. For what its worth just pushed the branch > to https://github.com/selvanair/openvpn/tree/uncrustify > > This uses all options at the CodeStyle page plus > sp_bool=add This makes sense. > sp_arith=add I think we agreed on IRC to not touch arithmetic spacing, because clarity really depends on the code. > pos_bool=lead What does this do exactly? The description "The position of boolean operators in wrapped expressions" from --show-config doesn't ring a bell for me. -Steffan