summaryrefslogtreecommitdiff
path: root/src/nodes
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 21:10:38 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 21:10:38 +0300
commitbecc7ab1d4187ed8752b7196c0ae4c477a1dfa32 (patch)
treee1100a4652b1288f015bd32ef13aa7cf2e32a03e /src/nodes
parent7f873372e2e20ebdc36a4f02ee9773ba6b1d8e32 (diff)
downloadparanucker-becc7ab1d4187ed8752b7196c0ae4c477a1dfa32.tar.gz
paranucker-becc7ab1d4187ed8752b7196c0ae4c477a1dfa32.tar.bz2
paranucker-becc7ab1d4187ed8752b7196c0ae4c477a1dfa32.tar.xz
paranucker-becc7ab1d4187ed8752b7196c0ae4c477a1dfa32.zip
Add some more FUNCTION_DECL nodes.
Diffstat (limited to 'src/nodes')
-rw-r--r--src/nodes/functiondeclnode.h14
-rw-r--r--src/nodes/parmdeclnode.h31
2 files changed, 44 insertions, 1 deletions
diff --git a/src/nodes/functiondeclnode.h b/src/nodes/functiondeclnode.h
index cb6b0a6..871fcd8 100644
--- a/src/nodes/functiondeclnode.h
+++ b/src/nodes/functiondeclnode.h
@@ -34,14 +34,26 @@ struct FunctionDeclNode : public Node
functionType(nullptr),
result(nullptr),
code(nullptr),
- args()
+ target(nullptr),
+ optimisation(nullptr),
+ args(),
+ isAutoGenerated(false),
+ isVirtual(false),
+ isFinal(false),
+ hasTargets(false)
{
}
FunctionTypeNode *functionType;
ResultDeclNode *result;
Node *code;
+ Node *target;
+ Node *optimisation;
std::vector<ParmDeclNode*> args;
+ bool isAutoGenerated;
+ bool isVirtual;
+ bool isFinal;
+ bool hasTargets;
};
#endif // NODES_FUNCTIONDECLNODE_H
diff --git a/src/nodes/parmdeclnode.h b/src/nodes/parmdeclnode.h
new file mode 100644
index 0000000..e61b057
--- /dev/null
+++ b/src/nodes/parmdeclnode.h
@@ -0,0 +1,31 @@
+/*
+ * 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_PARMDECLNODE_H
+#define NODES_PARMDECLNODE_H
+
+#include "nodes/node.h"
+
+#include <string>
+
+struct ParmDeclNode : public Node
+{
+};
+
+#endif // NODES_PARMDECLNODE_H