PSyclone icon indicating copy to clipboard operation
PSyclone copied to clipboard

_children_valid_format of OpenMP directives

Open LonelyCat124 opened this issue 2 years ago • 0 comments

As of #1151, OpenMP directives have additional "Clause" children.. At the moment, the specifier in _children_valid_format requires an ordering of these clauses as children, as something like [OMPPrivateClause, OMPDefaultClause]* doesn't specify a maximum of each number of children.

@sergisiso has had a few thoughts on this, e.g.:

I am still not sure what is the nicest solution here. Another option we talked about in to have a ClausesList which is mandatory and always proceed the directive body. And inside having the clauses/ or nothing if all are optional.

however, right now we did not have a solution we were happy with.

LonelyCat124 avatar Aug 10 '22 11:08 LonelyCat124