2 * sparse/check_bitwise_or.c
4 * Copyright (C) 2009 Dan Carpenter.
6 * Licensed under the Open Software License version 1.1
11 * I can't think of a place where it makes sense to use a bitwise
12 * or in a condition. Either people want bitwise and or regular or.
19 static void match_condition(struct expression
*expr
)
21 expr
= strip_expr(expr
);
22 if (expr
->type
!= EXPR_BINOP
)
25 sm_msg("error: bitwise or used in condition.");
28 void check_bitwise_or(int id
)
31 add_hook(&match_condition
, CONDITION_HOOK
);