[clang] [Clang][Sema][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 4 13:20:35 PDT 2024


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

I'm thinking to emit a warning instead of an error. The warning saying only the first three expressions will be used. WDYT?

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


More information about the cfe-commits mailing list