Received: from eggs.gnu.org ([140.186.70.92]:40788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RygGp-0000ZJ-7F for qemu-devel@nongnu.org; Sat, 18 Feb 2012 04:07:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RygGn-0004tR-Rs for qemu-devel@nongnu.org; Sat, 18 Feb 2012 04:07:55 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:37498) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RygGn-0004tI-IA for qemu-devel@nongnu.org; Sat, 18 Feb 2012 04:07:53 -0500 From: Stefan Weil Date: Sat, 18 Feb 2012 10:07:34 +0100 Message-Id: <1329556054-3601-1-git-send-email-sw@weilnetz.de> In-Reply-To: References: Subject: [Qemu-devel] [PATCH] astyle: Formatting rules for QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: blauwirbel@gmail.com Cc: Stefan Weil , qemu-devel@nongnu.org These AStyle rules try to implement the QEMU coding style. AStyle can also fix only certain aspects of the coding style, for example indentation. Signed-off-by: Stefan Weil --- Hi Blue, maybe this AStyle rules work better. I tried them with target-sparc, and the result does look quite good. Regards, Stefan scripts/astylerc | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 scripts/astylerc diff --git a/scripts/astylerc b/scripts/astylerc new file mode 100644 index 0000000..dfbfd41 --- /dev/null +++ b/scripts/astylerc @@ -0,0 +1,19 @@ +# Artistic Style (astyle) options for qemu source code. + +# Usage: +# astyle --options=scripts/astylerc {source files} + +# For best results, use latest astyle from http://astyle.sourceforge.net/. + +add-brackets +align-pointer=name +convert-tabs +max-code-length=80 +style=otbs +brackets=linux +indent=spaces=4 +max-code-length=80 +max-instatement-indent=60 +pad-oper +pad-header +unpad-paren -- 1.7.9