[flang] [llvm] [flang][OpenMP] Apply modifier representation to semantic checks (PR #116658)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 10:01:25 PST 2024
================
@@ -3440,6 +3440,16 @@ struct OmpObject {
WRAPPER_CLASS(OmpObjectList, std::list<OmpObject>);
+#define MODIFIER_BOILERPLATE(...) \
+ struct Modifier { \
+ using Variant = std::variant<__VA_ARGS__>; \
+ UNION_CLASS_BOILERPLATE(Modifier); \
+ CharBlock source; \
+ Variant u; \
+ }
+
+#define MODIFIERS() std::optional<std::list<Modifier>>
----------------
tblah wrote:
Ahh I understand now. Thanks for explaining. Yes this makes sense to me as it is.
https://github.com/llvm/llvm-project/pull/116658
More information about the llvm-commits
mailing list