summaryrefslogtreecommitdiff
path: root/src/parsers
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-12 19:46:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-12 19:46:47 +0300
commit7211bddb9a9708dc2390469a3997d994ce09c894 (patch)
treecdff41d5af0638deaf6876d55e49bd12c1f1acb4 /src/parsers
parent187a1faff0f95e2e115d9f9ffeee3a0fb65dde30 (diff)
downloadparanucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.gz
paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.bz2
paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.tar.xz
paranucker-7211bddb9a9708dc2390469a3997d994ce09c894.zip
Add parsing node SIZEOF_EXPR.
Diffstat (limited to 'src/parsers')
-rw-r--r--src/parsers/expr/sizeof_expr.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/parsers/expr/sizeof_expr.cpp b/src/parsers/expr/sizeof_expr.cpp
new file mode 100644
index 0000000..06bb194
--- /dev/null
+++ b/src/parsers/expr/sizeof_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(SizeOfExpr);
+
+#include "parsers/base/expr.h"
+
+#include "nodes/expr/sizeof_expr.h"
+
+namespace Generic
+{
+
+void parseSizeOfExprNode(SizeOfExprNode *node)
+{
+ fillType(node);
+ fillExprLocation(node);
+ Log::dump(node);
+
+ fillExprOperands(node);
+}
+
+}