[flang-commits] [flang] [flang][OpenMP] Allow parsing ODS as directive-specification list item (PR #185737)

Jack Styles via flang-commits flang-commits at lists.llvm.org
Thu Mar 12 02:18:17 PDT 2026


================
@@ -1673,6 +1712,12 @@ constexpr auto validBlock{many(validEPC)};
 
 TYPE_PARSER(sourced(construct<OmpDirectiveName>(OmpDirectiveNameParser{})))
 
+// Prevent accidental use of Parser<OmpDirectiveSpecification>.
----------------
Stylie777 wrote:

nit: Could we have this near the struct for `OmpDirectiveSpecificationParser`. If someone uses the original version earlier (even if its by accident) it won't be deleted.

https://github.com/llvm/llvm-project/pull/185737


More information about the flang-commits mailing list