summaryrefslogtreecommitdiff
path: root/src/include/synext_macro.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2019-11-07 02:24:56 +0800
committerJohn Hodge <tpg@mutabah.net>2019-11-07 02:24:56 +0800
commit83e5d7463a5cc3f0c3fa543bdd9c8b2502073eb0 (patch)
tree55ddd56ec273b707f3591fd91bb1b9c69f1bffcb /src/include/synext_macro.hpp
parent9976580f96b3fd10d90250f9d977e44e2ab9198d (diff)
downloadmrust-83e5d7463a5cc3f0c3fa543bdd9c8b2502073eb0.tar.gz
All - Fix some clang warnings
Diffstat (limited to 'src/include/synext_macro.hpp')
-rw-r--r--src/include/synext_macro.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/synext_macro.hpp b/src/include/synext_macro.hpp
index e62a6126..55653116 100644
--- a/src/include/synext_macro.hpp
+++ b/src/include/synext_macro.hpp
@@ -27,6 +27,7 @@ class TokenStream;
class ExpandProcMacro
{
public:
+ virtual ~ExpandProcMacro() = default;
virtual ::std::unique_ptr<TokenStream> expand(const Span& sp, const AST::Crate& crate, const TokenTree& tt, AST::Module& mod) = 0;
virtual ::std::unique_ptr<TokenStream> expand_ident(const Span& sp, const AST::Crate& crate, const RcString& ident, const TokenTree& tt, AST::Module& mod) {
ERROR(sp, E0000, "macro doesn't take an identifier");