diff options
Diffstat (limited to 'gcc/rust/ast/rust-macro.h')
-rw-r--r-- | gcc/rust/ast/rust-macro.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/rust/ast/rust-macro.h b/gcc/rust/ast/rust-macro.h index 5ab82c4..4b0a412 100644 --- a/gcc/rust/ast/rust-macro.h +++ b/gcc/rust/ast/rust-macro.h @@ -783,12 +783,17 @@ protected: class MetaNameValueStr : public MetaItem { Identifier ident; + Location ident_locus; + // NOTE: str stored without quotes std::string str; + Location str_locus; public: - MetaNameValueStr (Identifier ident, std::string str) - : ident (std::move (ident)), str (std::move (str)) + MetaNameValueStr (Identifier ident, Location ident_locus, std::string str, + Location str_locus) + : ident (std::move (ident)), ident_locus (ident_locus), + str (std::move (str)), str_locus (str_locus) {} std::string as_string () const override |