Add semantic check for most of the restrictions for the declare directive.
Thanks for the patch.
A few comments below.
I came to know quite a few new things from Flang code base.
- How to check scoping.
- Given an ObjectList or similar representation how to extract symbol and use interfaces from tools.h.
Trying to understand- not a blocking review comment.
Possibly a bug.
I see in my OACC 3.1 copy create clause as one of them in the list.
Do you need somewhere the index into standard for this?
Are checks from line 2410-2411 and 2412-2413 from OACC 3.1 missing or are handled somewhere else in previous patches ?
Any plans to add these ?
Thanks for the review. Did not see it before for some reason. I made some update to the patch.
Yeah the Walk is already handled by the Visitor class inherited by the DirectiveAttributeVisitor
Those are not yet implemented and will be done in a separate patch.