diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-02-04 09:38:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-04 09:38:43 +0000 |
commit | 83bfbf0746c87b641754697a3c8e9f7a7cb08aa9 (patch) | |
tree | 7e33205e75ef19e8e3eefef0a1eacd678a7ce35f /gcc/rust/ast/rust-ast.h | |
parent | 7eef766dc5a8abda2ca2cf8d535cdf160f40b50c (diff) | |
parent | 9f36d99b4067df98608dc3535e6c786d1897837e (diff) | |
download | gcc-83bfbf0746c87b641754697a3c8e9f7a7cb08aa9.zip gcc-83bfbf0746c87b641754697a3c8e9f7a7cb08aa9.tar.gz gcc-83bfbf0746c87b641754697a3c8e9f7a7cb08aa9.tar.bz2 |
Merge #907
907: Support cfg expansions predicates r=philberty a=philberty
Config expansion can be not, any, or all predicate to enforce the config
expansion logic.
This patch refactors the MacroParser to be named AttributeParser as it is
only used to parse attributes into MetaItems that we can work with and
do expansion logic upon. This handles the case of parsing the
inner-meta-item of not(A) to parse it into MetaListNameValueStr and tidies
up some of the code in the area.
Fixes #901
Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r-- | gcc/rust/ast/rust-ast.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/ast/rust-ast.h b/gcc/rust/ast/rust-ast.h index 1847aea..0c22c37 100644 --- a/gcc/rust/ast/rust-ast.h +++ b/gcc/rust/ast/rust-ast.h @@ -816,7 +816,7 @@ class MetaWord; class MetaListPaths; // Forward decl - defined in rust-macro.h -struct MetaListNameValueStr; +class MetaListNameValueStr; /* Base statement abstract class. Note that most "statements" are not allowed in * top-level module scope - only a subclass of statements called "items" are. */ |