aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/ast/rust-ast.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-02-03 15:37:06 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-02-03 15:56:56 +0000
commit9f36d99b4067df98608dc3535e6c786d1897837e (patch)
treeb08302c6a3890790c17cb6214fd20f93c66664c6 /gcc/rust/ast/rust-ast.h
parent3e6f9c2150a3b27a70f5adaeb2b9cd44943c898f (diff)
downloadgcc-9f36d99b4067df98608dc3535e6c786d1897837e.zip
gcc-9f36d99b4067df98608dc3535e6c786d1897837e.tar.gz
gcc-9f36d99b4067df98608dc3535e6c786d1897837e.tar.bz2
Support cfg expansions predicates
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
Diffstat (limited to 'gcc/rust/ast/rust-ast.h')
-rw-r--r--gcc/rust/ast/rust-ast.h2
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. */