aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-expr.h
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-10-03 22:08:13 +0800
committerPhilip Herron <philip.herron@embecosm.com>2020-11-28 21:13:21 +0000
commite7cf2f7789dccbb1d8aac6222b2b1c0f4d5f18f6 (patch)
tree8afd482e28be8b98920f34cec016523c714f8112 /gcc/rust/ast/rust-expr.h
parent2ed062a0be3e2c6e7bd50d25d9ede336fad7be38 (diff)
downloadgcc-e7cf2f7789dccbb1d8aac6222b2b1c0f4d5f18f6.zip
gcc-e7cf2f7789dccbb1d8aac6222b2b1c0f4d5f18f6.tar.gz
gcc-e7cf2f7789dccbb1d8aac6222b2b1c0f4d5f18f6.tar.bz2
Added skeleton for macro expansion and added way to convert MetaItems back to Attributes (e.g. for cfg_attr use)
Diffstat (limited to 'gcc/rust/ast/rust-expr.h')
-rw-r--r--gcc/rust/ast/rust-expr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/rust/ast/rust-expr.h b/gcc/rust/ast/rust-expr.h
index b989006..fd6913f 100644
--- a/gcc/rust/ast/rust-expr.h
+++ b/gcc/rust/ast/rust-expr.h
@@ -180,6 +180,8 @@ public:
/* TODO: return true if "ident" is defined and value of it is "lit", return
* false otherwise */
+ Attribute to_attribute () const override;
+
protected:
// Use covariance to implement clone function as returning this type
MetaItemPathLit *clone_meta_item_inner_impl () const override