Feature request: warn on a < b < c (original) (raw)

Bugzilla Link 20082
Version trunk
OS All

Extended Description

For C primers, it would be useful to warn on a < b < c:

int main(int argc, char* argv[])
{
    int a = 2;
    int b = 3;
    int c = 4;
    if (a < b < c) {
        /* ... */
    }
}

I think it makes sense to warn on these codes
as the compiler emits warnings on codes like if (a = b).

P.S. gcc emits warnings on such codes.