<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/CODING_STYLE, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/CODING_STYLE?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/CODING_STYLE?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2019-09-05T13:27:06+00:00</updated>
<entry>
<title>docs: convert README, CODING_STYLE and HACKING to RST syntax</title>
<updated>2019-09-05T13:27:06+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2019-08-23T16:09:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=336a7451e8803c21a2da6e7d1eca8cfb8e8b219a'/>
<id>urn:sha1:336a7451e8803c21a2da6e7d1eca8cfb8e8b219a</id>
<content type='text'>
Reviewed-by: Alex Bennée &lt;alex.bennee@linaro.org&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: indent example code as all others</title>
<updated>2019-05-02T16:12:58+00:00</updated>
<author>
<name>Wei Yang</name>
</author>
<published>2019-03-04T07:16:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25d68ffb6bca333ce8496eca7f438d5a93f9cd06'/>
<id>urn:sha1:25d68ffb6bca333ce8496eca7f438d5a93f9cd06</id>
<content type='text'>
All the example code are indented with four spaces except this one.

Fix this by adding four spaces here.

Signed-off-by: Wei Yang &lt;richardw.yang@linux.intel.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@redhat.com&gt;
Reviewed-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;
Message-Id: &lt;20190304071631.27567-3-richardw.yang@linux.intel.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: specify the indent rule for multiline code</title>
<updated>2019-05-02T16:12:58+00:00</updated>
<author>
<name>Wei Yang</name>
</author>
<published>2019-03-04T07:16:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=6ac1fca4ef29d8deaea50b0c7a45e0e9e59ff656'/>
<id>urn:sha1:6ac1fca4ef29d8deaea50b0c7a45e0e9e59ff656</id>
<content type='text'>
We didn't specify the indent rule for multiline code here, which may
mislead users. And in current code, the code use various styles.

Add this rule in CODING_STYLE to make sure this is clear to every one.

Signed-off-by: Wei Yang &lt;richardw.yang@linux.intel.com&gt;
Suggested-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Igor Mammedov &lt;imammedo@redhat.com&gt;
Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;
Message-Id: &lt;20190304071631.27567-2-richardw.yang@linux.intel.com&gt;
Signed-off-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: Define our preferred form for multiline comments</title>
<updated>2018-06-15T14:23:34+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2018-06-15T13:57:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2948f0cde3974185ad22d6721438cf85df852877'/>
<id>urn:sha1:2948f0cde3974185ad22d6721438cf85df852877</id>
<content type='text'>
The codebase has a bit of a mix of different multiline
comment styles. State a preference for the Linux kernel
style:
    /*
     * Star on the left for each line.
     * Leading slash-star and trailing star-slash
     * each go on a line of their own.
     */

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Cornelia Huck &lt;cohuck@redhat.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Alex Williamson &lt;alex.williamson@redhat.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-id: 20180611141716.3813-1-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>coding_style: add point about 0x in trace-events</title>
<updated>2017-08-01T11:13:07+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2017-07-31T16:01:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=44c6d6387b6a80ee1645b1b5cd5e2749f5596ca7'/>
<id>urn:sha1:44c6d6387b6a80ee1645b1b5cd5e2749f5596ca7</id>
<content type='text'>
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-id: 20170731160135.12101-2-vsementsov@virtuozzo.com
Signed-off-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: Mention preferred comment form</title>
<updated>2017-02-28T06:03:38+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2017-02-03T17:58:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=25ac5bbec43973e9b97a454e55fd307ef9db1320'/>
<id>urn:sha1:25ac5bbec43973e9b97a454e55fd307ef9db1320</id>
<content type='text'>
Our defacto coding style strongly prefers /* */ style comments
over the single-line // style, and checkpatch enforces this,
but we don't actually document this. Mention it in CODING_STYLE.

Suggested-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Fam Zheng &lt;famz@redhat.com&gt;
Reviewed-by: Laurent Vivier &lt;laurent@vivier.eu&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: Fix a typo ("have" vs. "has")</title>
<updated>2016-10-08T08:25:29+00:00</updated>
<author>
<name>Jonathan Neuschäfer</name>
</author>
<published>2016-09-30T00:04:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=56bef8511a576deef32d3e763b993b5001015c2d'/>
<id>urn:sha1:56bef8511a576deef32d3e763b993b5001015c2d</id>
<content type='text'>
Signed-off-by: Jonathan Neuschäfer &lt;j.neuschaefer@gmx.net&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE, checkpatch: update line length rules</title>
<updated>2016-08-10T10:22:33+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2015-09-07T09:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=8fbe3d1fcfa16c543f49f24e7cdfbf0024459341'/>
<id>urn:sha1:8fbe3d1fcfa16c543f49f24e7cdfbf0024459341</id>
<content type='text'>
Line lengths above 80 characters do exist.  They are rare, but
they happen from time to time.  An ignored rule is worse than an
exception to the rule, so do the latter.

Some on the list expressed their preference for a soft limit that
is slightly lower than 80 characters, to account for extra characters
in unified diffs (including three-way diffs) and for email quoting.
However, there was no consensus on this so keep the 80-character
soft limit and add a hard limit at 90.

Acked-by: Cornelia Huck &lt;cornelia.huck@de.ibm.com&gt;
Reviewed-by: Thomas Huth &lt;thuth@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: update mixed declaration rules</title>
<updated>2015-09-09T13:34:54+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2015-06-19T07:28:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=690a35e1f2acf4ccd0501b18228bc6fba8f9c768'/>
<id>urn:sha1:690a35e1f2acf4ccd0501b18228bc6fba8f9c768</id>
<content type='text'>
Mixed declarations do come in handy at the top of #ifdef blocks.
Reluctantly allow this particular usage and suggest an alternative.

Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
<entry>
<title>CODING_STYLE: Section about conditional statement</title>
<updated>2014-08-15T14:54:06+00:00</updated>
<author>
<name>Gonglei</name>
</author>
<published>2014-08-11T13:00:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2bb0020cf97c938f8339c76fa8a0da6353e8d27e'/>
<id>urn:sha1:2bb0020cf97c938f8339c76fa8a0da6353e8d27e</id>
<content type='text'>
Yoda conditions lack readability, and QEMU has a
strict compiler configuration for checking a common
mistake like "if (dev = NULL)". Make it a written rule.

Signed-off-by: Gonglei &lt;arei.gonglei@huawei.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
</feed>
