From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21138 invoked by alias); 8 Nov 2010 18:36:13 -0000 Received: (qmail 21067 invoked by uid 22791); 8 Nov 2010 18:36:12 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Nov 2010 18:36:08 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 40BF92BAC86; Mon, 8 Nov 2010 13:36:07 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 9ioSQhA8ANp7; Mon, 8 Nov 2010 13:36:07 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 5AE8C2BAC81; Mon, 8 Nov 2010 13:36:06 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id A010D145907; Mon, 8 Nov 2010 10:36:00 -0800 (PST) Date: Mon, 08 Nov 2010 18:36:00 -0000 From: Joel Brobecker To: Pedro Alves Cc: gdb-patches@sourceware.org, Mark Kettenis , jan.kratochvil@redhat.com, eliz@gnu.org, dje@google.com, ken@linux.vnet.ibm.com, tromey@redhat.com Subject: Re: [doc RFA] Switch to GCC coding style [Re: [patch] initial OpenCL C language support] Message-ID: <20101108183600.GF2933@adacore.com> References: <201010221920.30046.ken@linux.vnet.ibm.com> <20101108161121.GA2933@adacore.com> <201011081638.oA8GciFV005540@glazunov.sibelius.xs4all.nl> <201011081654.16724.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011081654.16724.pedro@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2010-11/txt/msg00126.txt.bz2 > Currently, the "C Coding Standards" section in gdbint.exp reads: [...] > by just saying that the recommendations must be followed strictly, and > and a sentence saying something to the effect of "the following list of extra > GDB specific rules apply" (the ones I quoted from GCC earlier): > > Code in GDB should use the following formatting conventions: > Use... ...instead of > !x ! x > ~x ~ x > -x (unary minus) - x > (foo) x (cast) (foo)x > *x (pointer dereference) * x > > This is all I was suggesting before. Really. That works for me, at least as a first step. We're fragmented between gdbint and Wiki in terms of documentation. But, somehow, it seems more natural to me to have the coding conventions available on the Wiki (for one thing, it would allow a hyperlink to the GCS, which is not available right now when you read this section in gdbint). -- Joel