From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8528 invoked by alias); 6 Jan 2011 12:38:06 -0000 Received: (qmail 8504 invoked by uid 22791); 6 Jan 2011 12:38:05 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Jan 2011 12:38:01 +0000 Received: by wyj26 with SMTP id 26so17083194wyj.0 for ; Thu, 06 Jan 2011 04:37:58 -0800 (PST) Received: by 10.216.159.69 with SMTP id r47mr481076wek.105.1294317478602; Thu, 06 Jan 2011 04:37:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.182.206 with HTTP; Thu, 6 Jan 2011 04:37:38 -0800 (PST) In-Reply-To: <20110106083223.GC2361@adacore.com> References: <20110106083223.GC2361@adacore.com> From: Hui Zhu Date: Thu, 06 Jan 2011 12:38:00 -0000 Message-ID: Subject: Re: FYI: My Coding Style cheat-sheet on the Wiki To: Joel Brobecker Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-01/txt/msg00124.txt.bz2 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 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. =A0Everyone should feel free to update > and enhance this document, if they find it useful. =A0I 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 >