From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Li Yang-r58472 <LeoLi@freescale.com>
Cc: linux-kernel@vger.kernel.org
Subject: RE: Lindent and coding style
Date: Tue, 21 Mar 2006 10:22:17 +0000 [thread overview]
Message-ID: <1142936537.21455.28.camel@localhost.localdomain> (raw)
In-Reply-To: <9FCDBA58F226D911B202000BDBAD4673054C365C@zch01exm40.ap.freescale.net>
On Maw, 2006-03-21 at 10:55 +0800, Li Yang-r58472 wrote:
> > It should produce suitable output. Do you have examples of where it
> > produces space indentation and you expect tabs ?
> As Jiri has said, it produces code like
> <tab> if (very long condition &&
> <tab> ssss2nd condition)...
> The indent command will align the second line at the next character of the left parentheses it belongs to. In my opinion, this approach makes code more readable. However, it does not comply with the coding style of kernel.
Lots of the kernel uses exactly that format (probably because of indent)
so I wouldn't worry personally. The CodingStyle document is a guide not
a formal specification.
next prev parent reply other threads:[~2006-03-21 10:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-21 2:55 Li Yang-r58472
2006-03-21 10:22 ` Alan Cox [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-03-21 2:58 Li Yang-r58472
2006-03-20 11:32 Li Yang-r58472
2006-03-20 14:36 ` Alan Cox
2006-03-20 14:51 ` Jiri Slaby
2006-03-20 16:12 ` Xavier Bestel
2006-03-20 16:21 ` Jiri Slaby
2006-03-20 16:28 ` Xavier Bestel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1142936537.21455.28.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=LeoLi@freescale.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®