Re: [Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-19 Thread Peter Maydell
On 19 September 2011 09:01, Markus Armbruster wrote: > Anthony Liguori writes: >> FWIW, this is what I use with emacs: > > Here's my configuration (excuse liberal use of sledgehammer): Anybody seeking yet a third emacs configuration can try https://wiki.linaro.org/PeterMaydell/QemuEmacsStyle :

Re: [Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-19 Thread Markus Armbruster
Anthony Liguori writes: [...] > FWIW, this is what I use with emacs: > > (c-add-style "qemu" > '("stroustrup" > (indent-tabs-mode . nil) > (c-basic-offset . 4) > (tab-width . 8) > ) > nil) ; t = set this style, nil = don't

Re: [Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-16 Thread Stefan Weil
Am 16.09.2011 15:07, schrieb Anthony Liguori: On 09/11/2011 12:00 PM, Stefan Weil wrote: For new C code (and maybe also for existing code), a code formatter like Artistic Style is helpful because it can fix tabs, indentation and other style issues. This option file tries to set astyle options w

Re: [Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-16 Thread Anthony Liguori
On 09/11/2011 12:00 PM, Stefan Weil wrote: For new C code (and maybe also for existing code), a code formatter like Artistic Style is helpful because it can fix tabs, indentation and other style issues. This option file tries to set astyle options which match QEMU's coding conventions. The qual

[Qemu-devel] [PATCH] Add astyle option file for code formatting

2011-09-11 Thread Stefan Weil
For new C code (and maybe also for existing code), a code formatter like Artistic Style is helpful because it can fix tabs, indentation and other style issues. This option file tries to set astyle options which match QEMU's coding conventions. The quality of astyle's code formatting depends on th