summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-12 19:11:34 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-12 19:11:34 +0300
commit580841b99df83c3a833c419d5b104fcff7a12497 (patch)
tree94eaf302b93cf5329b0c0ca82f636ac8ecb7d90a /src
parent10ca3e906acfea71659401747d96b699fc801e8a (diff)
downloadparanucker-580841b99df83c3a833c419d5b104fcff7a12497.tar.gz
paranucker-580841b99df83c3a833c419d5b104fcff7a12497.tar.bz2
paranucker-580841b99df83c3a833c419d5b104fcff7a12497.tar.xz
paranucker-580841b99df83c3a833c419d5b104fcff7a12497.zip
Add parsing node VIEW_CONVERT_EXPR.
Diffstat (limited to 'src')
-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/expr/viewconvert_expr.h35
-rw-r--r--src/parsers/expr/viewconvert_expr.cpp40
6 files changed, 81 insertions, 1 deletions
diff --git a/src/Makefile.files b/src/Makefile.files
index 55c1c31..2041df4 100644
--- a/src/Makefile.files
+++ b/src/Makefile.files
@@ -130,4 +130,6 @@ SRC = analysis/analysis.cpp \
nodes/decl/field_decl.h \
parsers/decl/field_decl.cpp \
nodes/type/vector_type.h \
- parsers/type/vector_type.cpp \ No newline at end of file
+ parsers/type/vector_type.cpp \
+ nodes/expr/viewconvert_expr.h \
+ parsers/expr/viewconvert_expr.cpp \ No newline at end of file
diff --git a/src/includes/nodeincludes.h b/src/includes/nodeincludes.h
index df4be8a..0eb1898 100644
--- a/src/includes/nodeincludes.h
+++ b/src/includes/nodeincludes.h
@@ -46,3 +46,4 @@
#include "nodes/block/ehspec_block.h"
#include "nodes/decl/field_decl.h"
#include "nodes/type/vector_type.h"
+#include "nodes/expr/viewconvert_expr.h"
diff --git a/src/includes/nodeshandling.inc b/src/includes/nodeshandling.inc
index 78ea478..a67bb27 100644
--- a/src/includes/nodeshandling.inc
+++ b/src/includes/nodeshandling.inc
@@ -45,3 +45,4 @@ handleNodeType(TARGET_EXPR, TargetExpr)
handleNodeType(EH_SPEC_BLOCK, EhSpecBlock)
handleNodeType(FIELD_DECL, FieldDecl)
handleNodeType(VECTOR_TYPE, VectorType)
+handleNodeType(VIEW_CONVERT_EXPR, ViewConvertExpr)
diff --git a/src/includes/parserdefines.inc b/src/includes/parserdefines.inc
index a3fa493..a547e2d 100644
--- a/src/includes/parserdefines.inc
+++ b/src/includes/parserdefines.inc
@@ -45,3 +45,4 @@ parserDefine(TargetExpr);
parserDefine(EhSpecBlock);
parserDefine(FieldDecl);
parserDefine(VectorType);
+parserDefine(ViewConvertExpr);
diff --git a/src/nodes/expr/viewconvert_expr.h b/src/nodes/expr/viewconvert_expr.h
new file mode 100644
index 0000000..dec7856
--- /dev/null
+++ b/src/nodes/expr/viewconvert_expr.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_EXPR_VIEWCONVERTEXPRNODE_H
+#define NODES_EXPR_VIEWCONVERTEXPRNODE_H
+
+#include "nodes/base/expr.h"
+
+#include <string>
+
+struct ViewConvertExprNode : public ExprNode
+{
+ ViewConvertExprNode() :
+ ExprNode()
+ {
+ }
+};
+
+#endif // NODES_EXPR_VIEWCONVERTEXPRNODE_H
diff --git a/src/parsers/expr/viewconvert_expr.cpp b/src/parsers/expr/viewconvert_expr.cpp
new file mode 100644
index 0000000..fe7f14d
--- /dev/null
+++ b/src/parsers/expr/viewconvert_expr.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(ViewConvertExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/viewconvert_expr.h"
+
+namespace Generic
+{
+
+void parseViewConvertExprNode(ViewConvertExprNode *node)
+{
+ fillType(node);
+ fillExprLocation(node);
+ Log::dump(node);
+
+ fillExprOperands(node);
+}
+
+}