From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: [PATCH v2] doc: add coding standards documentation Date: Thu, 4 Jun 2015 14:36:29 +0100 Message-ID: <20150604133629.GA10532@bricha3-MOBL3> References: <1431531022-29697-2-git-send-email-bruce.richardson@intel.com> <1627508.1SMo23WCxz@xps13> <20150604093330.GA4968@bricha3-MOBL3> <6992797.Cr2pidrT3F@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Thomas Monjalon Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id D8F5058DD for ; Thu, 4 Jun 2015 15:36:33 +0200 (CEST) Content-Disposition: inline In-Reply-To: <6992797.Cr2pidrT3F@xps13> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 04, 2015 at 11:49:49AM +0200, Thomas Monjalon wrote: > 2015-06-04 10:33, Bruce Richardson: > > On Wed, Jun 03, 2015 at 07:35:32PM +0200, Thomas Monjalon wrote: > > > 2015-06-03 14:58, Bruce Richardson: > > > > Add coding standards document to guides directory. This document > > > > codifies the current DPDK C coding conventions, to make it easier for > > > > contributors to see the format their code should be in. > > > > > > > > Signed-off-by: Siobhan Butler > > > > Signed-off-by: Bruce Richardson > > > > > > > > --- > > > > > > > > Updates in V2: > > > > * Fixed file creation mode > > > > * Removed blank line at end of file > > > > * Adjusted coding blocks to be C language, rather than console, so as to > > > > have correct syntax highlighting. > > > > * Shortened longer lines by breaking lines at sentence - and > > > > occasionally comma - boundaries. > > > > --- > > > > doc/guides/coding_standards/index.rst | 861 ++++++++++++++++++++++++++++++++++ > > > > doc/guides/index.rst | 1 + > > > > > > This version seems very good. > > > However, I have the feeling that coding_standards/ is not a good name: > > > - "standards" word is a bit strong ; > > > - "coding" seems too restrictive, maybe we would like to put > > > more guidelines in this directory (thinking about file tree, compat and tests). > > > Do you agree I rename it to guidelines/coding_style.rst? > > > > No problem, go with it! > > Acked-by: Thomas Monjalon > > Applied, thanks Great! General request to mailing list: While I've done my best with this doc to cover the current practice of coding in DPDK, I know there are lots of areas of style and convention I must have missed. Please submit patches to help fill in the gaps in this doc. :-) Thanks! /Bruce