aboutsummaryrefslogtreecommitdiffstats
path: root/c_parser/include/ast_statement.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'c_parser/include/ast_statement.hpp')
-rw-r--r--c_parser/include/ast_statement.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/c_parser/include/ast_statement.hpp b/c_parser/include/ast_statement.hpp
index 725308b..f2c7175 100644
--- a/c_parser/include/ast_statement.hpp
+++ b/c_parser/include/ast_statement.hpp
@@ -6,6 +6,7 @@ protected:
mutable std::vector<const ast_Base*> ast_list;
public:
+ ast_Statement() {}
ast_Statement(const ast_Base* _el) {
ast_list.push_back(_el);
}
@@ -23,6 +24,7 @@ public:
class ast_CompoundStatement : public ast_Statement {
public:
+ ast_CompoundStatement() : ast_Statement() {}
ast_CompoundStatement(const ast_Base* _el) : ast_Statement(_el) {}
virtual void print() const override {