CODING_STYLE: explicitly allow braceless 'else if'
commit5f070c5fb768cc587b1a75379b7b17c3f841fd40
authorAvi Kivity <avi@redhat.com>
Mon, 25 Jul 2011 15:55:53 +0000 (25 18:55 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 29 Jul 2011 14:33:56 +0000 (29 09:33 -0500)
tree99cbf3de3b393d0078c2ea65832a7559b2e3d6cf
parentecf169b7fa920b87e380981c5206148d057d85fb
CODING_STYLE: explicitly allow braceless 'else if'

It's already allowed by the example; there are about 1800 instances in the
tree; and disallowing it would lead to

    if (a) {
        ...
    } else {
        if (b) {
            ...
        } else {
            if (c) {
                ...
            } else {
                if (d) {
                    ...
                } else {
                    ...
                }
            }
        }
    }

instead of

    if (a) {
        ...
    } else if (b) {
        ...
    } else if (c) {
        ...
    } else if (d) {
        ...
    } else {
        ...
    }

which is more readable.

Acked-by: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
CODING_STYLE