[clang] [Clang][OpenMP] Add parsing for dims modifier in num_teams and thread_limit (PR #206412)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 30 06:30:34 PDT 2026


================
@@ -13647,10 +13693,7 @@ StmtResult SemaOpenMP::ActOnOpenMPTeamsDirective(ArrayRef<OMPClause *> Clauses,
   if (!AStmt)
     return StmtError();
 
-  if (!checkNumExprsInClause<OMPNumTeamsClause>(
-          *this, Clauses, /*MaxNum=*/1, diag::err_omp_multi_expr_not_allowed) ||
-      !checkNumExprsInClause<OMPThreadLimitClause>(
-          *this, Clauses, /*MaxNum=*/1, diag::err_omp_multi_expr_not_allowed))
+  if (checkNumExprsInClauses(*this, Clauses))
----------------
alexey-bataev wrote:

This is a change for a separate NFC patch

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


More information about the cfe-commits mailing list