aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/expand/rust-macro-expand.h
diff options
context:
space:
mode:
authorSimplyTheOther <simplytheother@gmail.com>2020-12-18 21:07:04 +0800
committerSimplyTheOther <simplytheother@gmail.com>2020-12-18 21:07:04 +0800
commitf764eeb8abf1ec50794ddb1f31bc57d025e29a3c (patch)
treeedee12ce380362c51141a9d472f4abfa5509a4ce /gcc/rust/expand/rust-macro-expand.h
parent0496b05eafd154500ec473e5ea26353dffd5cf79 (diff)
downloadgcc-f764eeb8abf1ec50794ddb1f31bc57d025e29a3c.zip
gcc-f764eeb8abf1ec50794ddb1f31bc57d025e29a3c.tar.gz
gcc-f764eeb8abf1ec50794ddb1f31bc57d025e29a3c.tar.bz2
Unified representation of macro invocation internal data - will be better for processing
Diffstat (limited to 'gcc/rust/expand/rust-macro-expand.h')
-rw-r--r--gcc/rust/expand/rust-macro-expand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/expand/rust-macro-expand.h b/gcc/rust/expand/rust-macro-expand.h
index a0c1a076..6752090 100644
--- a/gcc/rust/expand/rust-macro-expand.h
+++ b/gcc/rust/expand/rust-macro-expand.h
@@ -44,8 +44,8 @@ struct MacroExpander
void expand_cfg_attrs (std::vector<AST::Attribute> &attrs);
bool fails_cfg (std::vector<AST::Attribute> &attr);
- /* TODO: make it extend ASTVisitor so that individual items can be accessed
- * properly? */
+ // Expand the data of a cfg! macro.
+ AST::Literal expand_cfg_macro (AST::MacroInvocData &invoc);
private:
AST::Crate &crate;