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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 6 Jun 2018 20:28:14 +0000 (16:28 -0400)
commit831b702b8e8914a3ca3b4905a55aed93c7d30bbf
tree319c74e2ea0eeb0b68dea755846b4e0d41d4325e
parent0358f3d86acfd1ccf9dc8d283cb251c56f351730
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>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/lib/lttng-ctl/filter/filter-parser.y
tests/regression/tools/filtering/test_valid_filter
This page took 0.025244 seconds and 4 git commands to generate.