[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] astyle: Formatting rules for QEMU
From: |
Stefan Weil |
Subject: |
[Qemu-devel] [PATCH] astyle: Formatting rules for QEMU |
Date: |
Sat, 18 Feb 2012 10:07:34 +0100 |
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 <address@hidden>
---
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
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, (continued)
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Anthony Liguori, 2012/02/17
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Markus Armbruster, 2012/02/17
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Anthony Liguori, 2012/02/17
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Blue Swirl, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Stefan Weil, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Anthony Liguori, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Blue Swirl, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Andreas Färber, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Eric Blake, 2012/02/18
- Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Blue Swirl, 2012/02/18
- [Qemu-devel] [PATCH] astyle: Formatting rules for QEMU,
Stefan Weil <=
- Re: [Qemu-devel] [PATCH] astyle: Formatting rules for QEMU, Blue Swirl, 2012/02/18
- Re: [Qemu-devel] [PATCH] astyle: Formatting rules for QEMU, Stefan Weil, 2012/02/18
Re: [Qemu-devel] [PATCH] checkpatch: Don't WARN about missing spaces in audio files, Blue Swirl, 2012/02/11