projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare for '-Wimplicit-fallthrough'
[lttng-tools.git]
/
src
/
common
/
filter
/
filter-ast.h
diff --git
a/src/common/filter/filter-ast.h
b/src/common/filter/filter-ast.h
index 93f9b9b25fd746673cc4689ff7ac7f5033779122..2b460b401ef669d87a3ab9da67e973a564914e59 100644
(file)
--- a/
src/common/filter/filter-ast.h
+++ b/
src/common/filter/filter-ast.h
@@
-89,6
+89,16
@@
enum ast_link_type {
AST_LINK_BRACKET,
};
AST_LINK_BRACKET,
};
+enum ast_expt_type {
+ AST_EXP_UNKNOWN = 0,
+ AST_EXP_STRING,
+ AST_EXP_CONSTANT,
+ AST_EXP_FLOAT_CONSTANT,
+ AST_EXP_IDENTIFIER,
+ AST_EXP_GLOBAL_IDENTIFIER,
+ AST_EXP_NESTED,
+};
+
struct filter_node {
/*
* Parent node is only set on demand by specific visitor.
struct filter_node {
/*
* Parent node is only set on demand by specific visitor.
@@
-99,20
+109,14
@@
struct filter_node {
enum node_type type;
union {
struct {
enum node_type type;
union {
struct {
+ /* Avoid -Wextern-c-compat warning with clang++. */
+ char unused;
} unknown;
struct {
struct filter_node *child;
} root;
struct {
} unknown;
struct {
struct filter_node *child;
} root;
struct {
- enum {
- AST_EXP_UNKNOWN = 0,
- AST_EXP_STRING,
- AST_EXP_CONSTANT,
- AST_EXP_FLOAT_CONSTANT,
- AST_EXP_IDENTIFIER,
- AST_EXP_GLOBAL_IDENTIFIER,
- AST_EXP_NESTED,
- } type;
+ enum ast_expt_type type;
enum ast_link_type post_op; /* reverse */
enum ast_link_type pre_op; /* forward */
union {
enum ast_link_type post_op; /* reverse */
enum ast_link_type pre_op; /* forward */
union {
This page took
0.024002 seconds
and
4
git commands to generate.