X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fcommon%2Ffilter%2Ffilter-visitor-ir-check-binary-op-nesting.cpp;h=5ebbc43eeaafd740a182dd473ff020d90aebcc33;hb=28ab034a2c3582d07d3423d2d746731f87d3969f;hp=290ea0367aa80d4742862abac7ec01cb5939d4cf;hpb=348ddc5c9107149d48b1f12d31a7e75e9b73b4da;p=lttng-tools.git diff --git a/src/common/filter/filter-visitor-ir-check-binary-op-nesting.cpp b/src/common/filter/filter-visitor-ir-check-binary-op-nesting.cpp index 290ea0367..5ebbc43ee 100644 --- a/src/common/filter/filter-visitor-ir-check-binary-op-nesting.cpp +++ b/src/common/filter/filter-visitor-ir-check-binary-op-nesting.cpp @@ -9,20 +9,20 @@ * */ -#include -#include -#include -#include -#include -#include "filter-ast.h" +#include "filter-ast.hpp" +#include "filter-ir.hpp" #include "filter-parser.hpp" -#include "filter-ir.h" -#include -#include +#include +#include + +#include +#include +#include +#include +#include -static -int check_bin_op_nesting_recursive(struct ir_op *node, int nesting) +static int check_bin_op_nesting_recursive(struct ir_op *node, int nesting) { switch (node->op) { case IR_OP_UNKNOWN: @@ -31,34 +31,28 @@ int check_bin_op_nesting_recursive(struct ir_op *node, int nesting) return -EINVAL; case IR_OP_ROOT: - return check_bin_op_nesting_recursive(node->u.root.child, - nesting); + return check_bin_op_nesting_recursive(node->u.root.child, nesting); case IR_OP_LOAD: return 0; case IR_OP_UNARY: - return check_bin_op_nesting_recursive(node->u.unary.child, - nesting); + return check_bin_op_nesting_recursive(node->u.unary.child, nesting); case IR_OP_BINARY: { int ret; - ret = check_bin_op_nesting_recursive(node->u.binary.left, - nesting + 1); + ret = check_bin_op_nesting_recursive(node->u.binary.left, nesting + 1); if (ret) return ret; - return check_bin_op_nesting_recursive(node->u.binary.right, - nesting + 1); + return check_bin_op_nesting_recursive(node->u.binary.right, nesting + 1); } case IR_OP_LOGICAL: { int ret; - ret = check_bin_op_nesting_recursive(node->u.logical.left, - nesting); + ret = check_bin_op_nesting_recursive(node->u.logical.left, nesting); if (ret) return ret; - return check_bin_op_nesting_recursive(node->u.logical.right, - nesting); + return check_bin_op_nesting_recursive(node->u.logical.right, nesting); } } }