]> git.proxmox.com Git - mirror_qemu.git/commit - CODING_STYLE
CODING_STYLE: Section about conditional statement
authorGonglei <arei.gonglei@huawei.com>
Mon, 11 Aug 2014 13:00:51 +0000 (21:00 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 15 Aug 2014 14:54:06 +0000 (18:54 +0400)
commit2bb0020cf97c938f8339c76fa8a0da6353e8d27e
tree86c6427b2cbcb61e357da559630f2f1fdc5e2bdc
parent30dc600bbfe2c927440fd611d585d7a2acb42fbf
CODING_STYLE: Section about conditional statement

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 <arei.gonglei@huawei.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
CODING_STYLE