summaryrefslogtreecommitdiff
path: root/src/parsers/type_decl.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-04 16:55:12 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-04 16:55:12 +0300
commit6a15a9ec167fa27943f02101d61c2cece111ee02 (patch)
treee88b715085e054ee793ca4ec34d9819304d2e98a /src/parsers/type_decl.cpp
parent31bea817530d86bc59fe288e4ac84dcefee61e8f (diff)
downloadparanucker-6a15a9ec167fa27943f02101d61c2cece111ee02.tar.gz
paranucker-6a15a9ec167fa27943f02101d61c2cece111ee02.tar.bz2
paranucker-6a15a9ec167fa27943f02101d61c2cece111ee02.tar.xz
paranucker-6a15a9ec167fa27943f02101d61c2cece111ee02.zip
Add parsing TYPE_DECL node.
Diffstat (limited to 'src/parsers/type_decl.cpp')
-rw-r--r--src/parsers/type_decl.cpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/parsers/type_decl.cpp b/src/parsers/type_decl.cpp
new file mode 100644
index 0000000..9f5c011
--- /dev/null
+++ b/src/parsers/type_decl.cpp
@@ -0,0 +1,52 @@
+/*
+ * 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 "parsers/type_decl.h"
+
+#include "logger.h"
+
+#include "parsers/generic.h"
+
+#include "parsers/base/decl.h"
+
+#include "nodes/typedeclnode.h"
+
+#include "localconsts.h"
+
+namespace Generic
+{
+
+void parseTypeDeclNode(TypeDeclNode *node)
+{
+ fillType(node);
+ fillLocation(node);
+ fillDeclLabel(node);
+ Log::log(node);
+
+ fillDeclAutoGenerated(node);
+ fillDeclAttributes(node);
+
+// going to parent
+// createParseNode(
+// node,
+// TREE_TYPE(node->gccNode),
+// "result type");
+}
+
+}