summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile.files4
-rw-r--r--src/includes/nodeincludes.h1
-rw-r--r--src/includes/nodeshandling.inc1
-rw-r--r--src/includes/parserdefines.inc1
-rw-r--r--src/nodes/ref/bitfield_ref.h35
-rw-r--r--src/parsers/ref/bitfield_ref.cpp40
6 files changed, 81 insertions, 1 deletions
diff --git a/src/Makefile.files b/src/Makefile.files
index 8e4eb68..daea543 100644
--- a/src/Makefile.files
+++ b/src/Makefile.files
@@ -268,4 +268,6 @@ SRC = analysis/analysis.cpp \
nodes/expr/throw_expr.h \
parsers/expr/throw_expr.cpp \
nodes/ref/array_ref.h \
- parsers/ref/array_ref.cpp \ No newline at end of file
+ parsers/ref/array_ref.cpp \
+ nodes/ref/bitfield_ref.h \
+ parsers/ref/bitfield_ref.cpp \ No newline at end of file
diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h
index 6748aa0..40361f0 100644
--- a/src/includes/nodeincludes.h
+++ b/src/includes/nodeincludes.h
@@ -112,3 +112,4 @@
#include "nodes/expr/asm_expr.h"
#include "nodes/expr/throw_expr.h"
#include "nodes/ref/array_ref.h"
+#include "nodes/ref/bitfield_ref.h"
diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc
index a6e4e21..a601316 100644
--- a/src/includes/nodeshandling.inc
+++ b/src/includes/nodeshandling.inc
@@ -111,3 +111,4 @@ handleNodeType(OBJ_TYPE_REF, ObjTypeRef)
handleNodeType(ASM_EXPR, AsmExpr)
handleNodeType(THROW_EXPR, ThrowExpr)
handleNodeType(ARRAY_REF, ArrayRef)
+handleNodeType(BIT_FIELD_REF, BitFieldRef)
diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc
index 9d72b0d..73b527e 100644
--- a/src/includes/parserdefines.inc
+++ b/src/includes/parserdefines.inc
@@ -111,3 +111,4 @@ parserDefine(ObjTypeRef);
parserDefine(AsmExpr);
parserDefine(ThrowExpr);
parserDefine(ArrayRef);
+parserDefine(BitFieldRef);
diff --git a/src/nodes/ref/bitfield_ref.h b/src/nodes/ref/bitfield_ref.h
new file mode 100644
index 0000000..da80816
--- /dev/null
+++ b/src/nodes/ref/bitfield_ref.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2015 Andrei Karas
+ *
+ * This file is part of AstDumper.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef NODES_REF_BITFIELDREFNODE_H
+#define NODES_REF_BITFIELDREFNODE_H
+
+#include "nodes/base/ref.h"
+
+#include <string>
+
+struct BitFieldRefNode : public RefNode
+{
+ BitFieldRefNode() :
+ RefNode()
+ {
+ }
+};
+
+#endif // NODES_REF_BITFIELDREFNODE_H
diff --git a/src/parsers/ref/bitfield_ref.cpp b/src/parsers/ref/bitfield_ref.cpp
new file mode 100644
index 0000000..45294c4
--- /dev/null
+++ b/src/parsers/ref/bitfield_ref.cpp
@@ -0,0 +1,40 @@
+/*
+ * Copyright (C) 2015 Andrei Karas
+ *
+ * This file is part of AstDumper.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "includes/parserincludes.h"
+
+parserDefine(BitFieldRef);
+
+#include "parsers/base/ref.h"
+
+#include "nodes/ref/bitfield_ref.h"
+
+namespace Generic
+{
+
+void parseBitFieldRefNode(BitFieldRefNode *node)
+{
+ fillType(node);
+ fillRefLocation(node);
+ Log::dump(node);
+
+ fillRefOperands(node);
+}
+
+}