docs: split the CODING_STYLE doc into distinct groups

Backports commit 9f8efa74d3f1cb9ceeee957ee382c2b4feb2ae30 from qemu
This commit is contained in:
Daniel P. Berrangé 2019-11-20 13:04:24 -05:00 committed by Lioncash
parent 1862005570
commit 3c0bab6b11
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -7,6 +7,9 @@ QEMU Coding Style
Please use the script checkpatch.pl in the scripts directory to check Please use the script checkpatch.pl in the scripts directory to check
patches before submitting. patches before submitting.
Formatting and style
********************
Whitespace Whitespace
========== ==========
@ -205,6 +208,9 @@ comment anyway.)
Rationale: Consistency, and ease of visually picking out a multiline Rationale: Consistency, and ease of visually picking out a multiline
comment from the surrounding code. comment from the surrounding code.
Language usage
**************
Preprocessor Preprocessor
============ ============
@ -526,6 +532,9 @@ are still some caveats to beware of
} }
QEMU Specific Idioms
********************
Error handling and reporting Error handling and reporting
============================ ============================