================
@@ -13004,13 +13004,34 @@ StmtResult 
SemaOpenMP::ActOnOpenMPTargetUpdateDirective(
                                           Clauses, AStmt);
 }
 
+// This checks whether num_teams clause only has one expression.
+static bool checkNumTeamsClauseSingleExpr(SemaBase &SemaRef,
----------------
jdoerfert wrote:

Pass the maximal number of expressions as a parameter since you also need to 
check the ompx_bare version has at most 3. The diagnosis message then needs to 
print the maximum, maybe also mention ompx_bare.

https://github.com/llvm/llvm-project/pull/99732
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to