diff options
author | chriseth <chris@ethereum.org> | 2018-05-02 21:27:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 21:27:16 +0800 |
commit | dc18cde66f9dca1cfe93f04a376e9c20a4614328 (patch) | |
tree | b017d487890f286a05e5cfe97215f5e2a3985bb8 /libsolidity/ast/AST.h | |
parent | 5cce2e552baf1f7431c99500da74cb929360c3b8 (diff) | |
parent | f94b793472a8427e0507862cd5595cc92e70f53c (diff) | |
download | dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar.gz dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar.bz2 dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar.lz dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar.xz dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.tar.zst dexon-solidity-dc18cde66f9dca1cfe93f04a376e9c20a4614328.zip |
Merge pull request #4040 from aarlt/virtual-destructors
Add virtual destructors on base classes.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index a53987bf..fa0d6921 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -146,6 +146,7 @@ private: class Scopable { public: + virtual ~Scopable() = default; /// @returns the scope this declaration resides in. Can be nullptr if it is the global scope. /// Available only after name and type resolution step. ASTNode const* scope() const { return m_scope; } @@ -307,6 +308,7 @@ private: class VariableScope { public: + virtual ~VariableScope() = default; void addLocalVariable(VariableDeclaration const& _localVariable) { m_localVariables.push_back(&_localVariable); } std::vector<VariableDeclaration const*> const& localVariables() const { return m_localVariables; } @@ -320,6 +322,7 @@ private: class Documented { public: + virtual ~Documented() = default; explicit Documented(ASTPointer<ASTString> const& _documentation): m_documentation(_documentation) {} /// @return A shared pointer of an ASTString. @@ -336,6 +339,7 @@ protected: class ImplementationOptional { public: + virtual ~ImplementationOptional() = default; explicit ImplementationOptional(bool _implemented): m_implemented(_implemented) {} /// @return whether this node is fully implemented or not |