From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q4uou-0007Fg-M4 for garchives@archives.gentoo.org; Wed, 30 Mar 2011 12:48:21 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42F7F1C097; Wed, 30 Mar 2011 12:48:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 139781C08D for ; Wed, 30 Mar 2011 12:48:07 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 753D51B4196 for ; Wed, 30 Mar 2011 12:48:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id D163080065 for ; Wed, 30 Mar 2011 12:48:05 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <1f8f800cee198affb83f4c86206377ef3f66591e.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: bashast/, coding_standard/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/bashast.g coding_standard/coding_standard.tex X-VCS-Directories: bashast/ coding_standard/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 1f8f800cee198affb83f4c86206377ef3f66591e Date: Wed, 30 Mar 2011 12:48:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5488b84c42bbe7c1f83c0103c8007dba commit: 1f8f800cee198affb83f4c86206377ef3f66591e Author: Mu Qiao gentoo org> AuthorDate: Mon Mar 28 02:42:05 2011 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Tue Mar 29 04:34:45 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D1f8f800c Add indentation rules for grammar and autotools Use tabs(ts=3D4) for grammar and autotools related files. Fixed current indentation. --- bashast/bashast.g | 4 ++-- coding_standard/coding_standard.tex | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/bashast/bashast.g b/bashast/bashast.g index d16ba5c..ef87271 100644 --- a/bashast/bashast.g +++ b/bashast/bashast.g @@ -509,8 +509,8 @@ name : NAME //**************** =20 COMMENT - : (BLANK|EOL) '#' ~('\n'|'\r')* {$channel=3DHIDDEN;} - ; + : (BLANK|EOL) '#' ~('\n'|'\r')* {$channel=3DHIDDEN;} + ; //Bash "reserved words" BANG : '!'; CASE : 'case'; diff --git a/coding_standard/coding_standard.tex b/coding_standard/coding= _standard.tex index 8230453..ba2e508 100644 --- a/coding_standard/coding_standard.tex +++ b/coding_standard/coding_standard.tex @@ -28,7 +28,7 @@ Header files must contain the appropriate ifndef header= guard: #ifndef FILENAME_H #define FILENAME_H =20 -/*=20 +/* code */ =20 @@ -76,7 +76,10 @@ Member variables in a class should have the following = comment block: \section{Program code} \subsection{Indentation} Every line inside of a code block should be indented for easier readabil= ity.\\ -Tabs should not be used for indentation, only spaces. Indentation width= will be two spaces. +Tabs should not be used for indentation, only spaces. Indentation width= will be two spaces. \\ +Tabs should be used for ANTLR grammar because antlrworks automatically g= enerate tabs. \\ +Tabs should also be used for autotools related files(Makefile.am, config= ure.ac, etc). \\ +Use ts=3D4 for indentation. \subsection{Naming conventions} The name of a variable, function, class, or struct should be obvious fro= m it's name.\\ Names will use underscored names not mixed case.\\ @@ -135,4 +138,4 @@ return my_list.size(); =20 return (index