Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1462295
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] CodingStyle: Remove "Don't use C99-style comments" |
| Date | 2016-08-14 20:50 +0200 |
| Message-ID | <s68DU-3gO-19@gated-at.bofh.it> (permalink) |
| References | <rUg4a-3O9-3@gated-at.bofh.it> <s2v62-4dg-15@gated-at.bofh.it> <s68ud-3cX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, 2016-08-14 at 12:35 -0600, Jonathan Corbet wrote: > On Thu, 04 Aug 2016 10:55:14 -0700 Joe Perches <joe@perches.com> wrote: > > > Because Linus may still be reading source code on greenbar paper > > > instead of color terminals with code syntax highlighting and > > > appropriate font decorations. > > > > > > Link: http://lkml.kernel.org/r/CA+55aFyQYJerovMsSoSKS7PessZBr4vNp-3QUUwhqk4A4_jcbg@mail.gmail.com [] > > > diff --git a/Documentation/CodingStyle b/Documentation/CodingStyle [] > > > @@ -461,9 +461,6 @@ When commenting the kernel API functions, please use the kernel-doc format. > > > See the files Documentation/kernel-doc-nano-HOWTO.txt and scripts/kernel-doc > > > for details. > > > > > > -Linux style for comments is the C89 "/* ... */" style. > > > -Don't use C99-style "// ..." comments. > > > - > > > The preferred style for long (multi-line) comments is: > > > > > > /* > > ping? > Sorry, I've not been ignoring this, I've just not yet worked up the > courage to apply it. Yes, Linus said he's fine with C++-style comments, > but I still expect some pushback when people start actually sending them. > I don't quite feel a sense of community consensus on this one. > > Still, what the heck, I'll go ahead and apply it. We can always revert it > when people start screaming :) ;) Yeah, that was my thought too when I sent the patch for checkpatch to ignore // comments. What the heck. I just don't care that much how people comment their code. Syntax coloring and highlighting works in every editor I use except the email client and I should change the one I use (evolution) one day because it's broken anyway. cheers, Joe
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [PATCH] CodingStyle: Remove "Don't use C99-style comments" Jonathan Corbet <corbet@lwn.net> - 2016-08-14 20:40 +0200
Re: [PATCH] CodingStyle: Remove "Don't use C99-style comments" Joe Perches <joe@perches.com> - 2016-08-14 20:50 +0200
Re: [PATCH] CodingStyle: Remove "Don't use C99-style comments" Randy Dunlap <rdunlap@infradead.org> - 2016-08-14 21:10 +0200
Re: [PATCH] CodingStyle: Remove "Don't use C99-style comments" Joe Perches <joe@perches.com> - 2016-08-14 21:20 +0200
csiph-web