@@ -215,7 +215,7 @@ TYPE_PARSER(construct<OmpIfClause>(
215215 ":"),
216216 scalarLogicalExpr))
217217
218- // 2.15.3.6 REDUCTION (reduction-identifier: variable-name-list)
218+ // OpenMPv5.2 2.15.3.6 REDUCTION (reduction-identifier: variable-name-list)
219219TYPE_PARSER(construct<OmpReductionOperator>(Parser<DefinedOperator>{}) ||
220220 construct<OmpReductionOperator>(Parser<ProcedureDesignator>{}))
221221
@@ -298,6 +298,9 @@ TYPE_CONTEXT_PARSER("Omp LINEAR clause"_en_US,
298298 construct<OmpLinearClause>(construct<OmpLinearClause::WithoutModifier>(
299299 nonemptyList (name), maybe(" :" >> scalarIntConstantExpr)))))
300300
301+ // 12.5.2 detach-clause -> DETACH (event-handle)
302+ TYPE_PARSER(construct<OmpDetachClause>(Parser<OmpObject>{}))
303+
301304// 2.8.1 ALIGNED (list: alignment)
302305TYPE_PARSER(construct<OmpAlignedClause>(
303306 Parser<OmpObjectList>{}, maybe(" :" >> scalarIntConstantExpr)))
@@ -414,6 +417,8 @@ TYPE_PARSER(
414417 parenthesized (Parser<OmpReductionClause>{}))) ||
415418 "IN_REDUCTION" >> construct<OmpClause>(construct<OmpClause::InReduction>(
416419 parenthesized (Parser<OmpInReductionClause>{}))) ||
420+ "DETACH" >> construct<OmpClause>(construct<OmpClause::Detach>(
421+ parenthesized (Parser<OmpDetachClause>{}))) ||
417422 "TASK_REDUCTION" >>
418423 construct<OmpClause>(construct<OmpClause::TaskReduction>(
419424 parenthesized (Parser<OmpReductionClause>{}))) ||
0 commit comments