X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=CODING_STYLE;h=2fa0c0b65b6c1315202741193b725b537f2bf2ff;hb=b8adbc657802482e4da1767bf983ebfdf9bfe9fc;hp=f53180bf3fff844071ba7786eba5d233a562f427;hpb=0f183e679d85fec74fc83f35f973cf8e56d97861;p=mirror_qemu.git diff --git a/CODING_STYLE b/CODING_STYLE index f53180bf3f..2fa0c0b65b 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -116,3 +116,10 @@ if (a == 1) { Rationale: Yoda conditions (as in 'if (1 == a)') are awkward to read. Besides, good compilers already warn users when '==' is mis-typed as '=', even when the constant is on the right. + +7. Comment style + +We use traditional C-style /* */ comments and avoid // comments. + +Rationale: The // form is valid in C99, so this is purely a matter of +consistency of style. The checkpatch script will warn you about this.