diff options
author | John Hodge <tpg@mutabah.net> | 2019-11-07 02:24:56 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2019-11-07 02:24:56 +0800 |
commit | 83e5d7463a5cc3f0c3fa543bdd9c8b2502073eb0 (patch) | |
tree | 55ddd56ec273b707f3591fd91bb1b9c69f1bffcb /src/include/synext_macro.hpp | |
parent | 9976580f96b3fd10d90250f9d977e44e2ab9198d (diff) | |
download | mrust-83e5d7463a5cc3f0c3fa543bdd9c8b2502073eb0.tar.gz |
All - Fix some clang warnings
Diffstat (limited to 'src/include/synext_macro.hpp')
-rw-r--r-- | src/include/synext_macro.hpp | 1 |
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"); |