projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests fix: lttngtest: quote session output path
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-visitor-ir-check-binary-op-nesting.cpp
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 290ea0367aa80d4742862abac7ec01cb5939d4cf..5ebbc43eeaafd740a182dd473ff020d90aebcc33 100644
(file)
--- 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 <stdio.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdlib.h>
-#include <inttypes.h>
-#include "filter-ast.h"
+#include "filter-ast.hpp"
+#include "filter-ir.hpp"
#include "filter-parser.hpp"
#include "filter-parser.hpp"
-#include "filter-ir.h"
-#include <common/compat/errno.h>
-#include <common/macros.h>
+#include <common/compat/errno.hpp>
+#include <common/macros.hpp>
+
+#include <inttypes.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
-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:
{
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 -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:
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;
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;
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;
}
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;
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);
}
}
}
}
}
}
This page took
0.024185 seconds
and
4
git commands to generate.