astyle: Formatting rules for QEMU

Submitted by Stefan Weil on Feb. 18, 2012, 9:07 a.m.


Message ID
State New
Headers show

Commit Message

Stefan Weil Feb. 18, 2012, 9:07 a.m.
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.


 scripts/astylerc |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 scripts/astylerc

Patch hide | download patch | download mbox

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