From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fSnm7-0003EU-Qg for qemu-devel@nongnu.org; Tue, 12 Jun 2018 14:12:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fSnm4-0005Og-Lr for qemu-devel@nongnu.org; Tue, 12 Jun 2018 14:12:11 -0400 References: <20180611141716.3813-1-peter.maydell@linaro.org> <650048df-f4b1-b351-f877-be8c84197ba2@linaro.org> From: Thomas Huth Message-ID: <85642e2a-f00a-3d85-8525-0ae89e4d71c9@redhat.com> Date: Tue, 12 Jun 2018 20:12:02 +0200 MIME-Version: 1.0 In-Reply-To: <650048df-f4b1-b351-f877-be8c84197ba2@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] CODING_STYLE: Define our preferred form for multiline comments List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson , Peter Maydell , qemu-devel@nongnu.org, qemu-trivial@nongnu.org Cc: Kevin Wolf , patches@linaro.org, Cornelia Huck , Markus Armbruster , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Alex Williamson , Stefan Hajnoczi , John Snow , Richard Henderson On 12.06.2018 19:30, Richard Henderson wrote: > On 06/11/2018 04:17 AM, Peter Maydell wrote: >> The codebase has a bit of a mix of different multiline >> comment styles. State a preference for the Linux kernel >> style: >> /* >> * Star on the left for each line. >> * Leading slash-star and trailing star-slash >> * each go on a line of their own. >> */ >> >> Signed-off-by: Peter Maydell >> --- >> This is not my personal favourite, but seemed to be the >> closest we had to consensus in the mail thread for v1; >> I can live with it in order to avoid getting patches which >> use the styles I like even less :-) > > Honestly, I don't like this except for "important" comments. > > A "small" comment, e.g. one that doesn't quite fit on a single line, now takes > 4 lines instead of 2. Which is really annoying and IMO tends to break flow. > > If you don't like > > /* gnu > style */ > > or > > /* whatever > * this is */ > > could you live with > > // c99/c++ > // comments FWIW: +1 for one or two of those compact styles for two- or three-line comments. Thomas