This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: My Coding Style cheat-sheet on the Wiki
- From: Hui Zhu <teawater at gmail dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 6 Jan 2011 20:37:38 +0800
- Subject: Re: FYI: My Coding Style cheat-sheet on the Wiki
- References: <20110106083223.GC2361@adacore.com>
I suggest we make a script that can check the format of the patch and
tell which line's format is not right. Like in Linux kernel
scripts/checkpatch.pl
Thanks,
Hui
On Thu, Jan 6, 2011 at 16:32, Joel Brobecker <brobecker@adacore.com> wrote:
> This is something I started writing down in a text file, and thought
> I'd share. This is unofficial, and incomplete, and there is a big
> disclaimer about it.
>
> The intention for this document is to be a cheat-sheet in the situations
> where you know there is a rule about something, but can't remember what
> exactly it says. Instead of having to grep 2 documents (the GCS, and
> our GDB Internal's manual), the cheat-sheet is meant to be a possible
> help.
>
> I hope that it helps others. ?Everyone should feel free to update
> and enhance this document, if they find it useful. ?I hope that
> the cheap-to-update simplicity of the Wiki will encourage anyone
> to do so.
>
> http://sourceware.org/gdb/wiki/JoelsCodingStyleCheatSheet
>
> This page is also accessible from the HomePage.
>
> --
> Joel
>