From: Randy Dunlap <rdunlap@infradead.org>
To: chunguang qu <quchunguang@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Indent issus in kernel module development
Date: Fri, 18 Dec 2015 18:26:48 -0800 [thread overview]
Message-ID: <5674C068.9000809@infradead.org> (raw)
In-Reply-To: <CABk77Dgj8N_LKvo5CuRO-AdR1CmokJ1nUWT2Jh=cQKLM0VKwUA@mail.gmail.com>
On 12/18/15 18:07, chunguang qu wrote:
> `indent -linux` sometimes made my code totally a mess.
> I know it most likely a bug of GNU INDENT. And this is not a bug report.
> I only want to know other kernel developers how to deal with this problem.
> Since GUN INDENT is recommend in kernel's CodingStyle, I think surely
> someone here encounter this problem either.
Huh?
CodingStyle says:
Now, again, GNU indent has the same brain-dead settings that GNU emacs
has, which is why you need to give it a few command line options.
It also says try using scripts/Lindent. Have you tried it?
It won't be perfect either, AFAI recall, but it might help.
or you could try emacs (as indicated in CodingStyle). Good luck with that.
> CMD
> LANG=C indent -linux
>
> FROM
> http://paste.ubuntu.com/14093393/
>
> TO
> http://paste.ubuntu.com/14093405/
>
> Thanks.
--
~Randy
next prev parent reply other threads:[~2015-12-19 2:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-19 2:07 Indent issus in kernel module development chunguang qu
2015-12-19 2:26 ` Randy Dunlap [this message]
2015-12-19 5:50 ` chunguang qu
2015-12-19 6:16 ` Joe Perches
2015-12-20 12:52 ` chunguang qu
2015-12-21 15:13 ` Austin S. Hemmelgarn
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=5674C068.9000809@infradead.org \
--to=rdunlap@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quchunguang@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.