diff options
author | John Hodge <tpg@mutabah.net> | 2016-05-25 23:16:23 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-05-25 23:16:23 +0800 |
commit | dd7680bc0d53f02e4b96b2b3896ebea16742c9bb (patch) | |
tree | 1c28b4c3a9e5493d8f4ca23c28e438497b385c4a /src/ast/macro.hpp | |
parent | 677cfbea5c6652e96fffd70a2bcd7078a42b4387 (diff) | |
download | mrust-dd7680bc0d53f02e4b96b2b3896ebea16742c9bb.tar.gz |
Parse - Use interpolated macro fragments instead of captured TTs
Diffstat (limited to 'src/ast/macro.hpp')
-rw-r--r-- | src/ast/macro.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ast/macro.hpp b/src/ast/macro.hpp index 85f2dea2..5cd53e1f 100644 --- a/src/ast/macro.hpp +++ b/src/ast/macro.hpp @@ -18,6 +18,11 @@ class MacroInvocation: ::std::string m_ident; TokenTree m_input; public: + MacroInvocation(MacroInvocation&&) = default; + MacroInvocation& operator=(MacroInvocation&&) = default; + MacroInvocation(const MacroInvocation&) = delete; + MacroInvocation& operator=(const MacroInvocation&) = delete; + MacroInvocation() { } @@ -30,6 +35,8 @@ public: m_input( mv$(input) ) { } + + MacroInvocation clone() const; static ::std::unique_ptr<MacroInvocation> from_deserialiser(Deserialiser& s) { auto i = new MacroInvocation; |