summaryrefslogtreecommitdiff
path: root/CODING_STYLE
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2011-01-20 20:58:56 +0000
committerBlue Swirl <blauwirbel@gmail.com>2011-01-20 20:58:56 +0000
commitb646968336d4180bdd7d2e24209708dcee6ba400 (patch)
treee3d7e0716eeaff9b9174b51b2c983bd565bbeccc /CODING_STYLE
parent1ec3f6f9abca4f4f73d7e8a74dd9b14c1f087a8e (diff)
checkpatch: adjust to QEMUisms
Change checkpatch.pl for QEMU use: - Root directory detection - Forbid tabs - Indent at 4 spaces - Allow typedefs - Enforce brace use even for single statement blocks - Don't suggest nonexistent cleanup tools Mention the script in CODING_STYLE. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'CODING_STYLE')
-rw-r--r--CODING_STYLE3
1 files changed, 3 insertions, 0 deletions
diff --git a/CODING_STYLE b/CODING_STYLE
index 2c8268ddc2..5ecfa22161 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -1,6 +1,9 @@
Qemu Coding Style
=================
+Please use the script checkpatch.pl in the scripts directory to check
+patches before submitting.
+
1. Whitespace
Of course, the most important aspect in any coding style is whitespace.