Filter: make bitwise and, or, xor higher prio than relational expressions
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 22 Sep 2017 21:38:13 +0000 (17:38 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 25 Sep 2017 21:51:10 +0000 (17:51 -0400)
commitcf8e9832a9e96dcf069b668fff979838289668aa
tree6bb240b7650f1c6d5c52e53cd32e8933bb3d68b4
parentc9689a73d3a740a8a36a4722c3d001dd62b680ed
Filter: make bitwise and, or, xor higher prio than relational expressions

It seems that the usual use-case for bitwise ops are to apply them on
values rather than on the result of equality/inequality. Therefore, move
away from the C operator precedence order, and ensure bitwise and, or,
xor are higher priority than relational expressions (equality and
inequality).

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lib/lttng-ctl/filter/filter-parser.y
tests/regression/tools/filtering/test_valid_filter
This page took 0.028665 seconds and 5 git commands to generate.