X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=CODING_STYLE;h=2fa0c0b65b6c1315202741193b725b537f2bf2ff;hb=7609ffb9191e3fc473203f4bd58b934161eab358;hp=f53180bf3fff844071ba7786eba5d233a562f427;hpb=627eae7d729277c84f8e0ac07a8caab39c92c38d;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.