================ @@ -665,60 +619,44 @@ bool clang::isOpenMPTargetDataManagementDirective(OpenMPDirectiveKind DKind) { } bool clang::isOpenMPNestingTeamsDirective(OpenMPDirectiveKind DKind) { - return DKind == OMPD_teams || DKind == OMPD_teams_distribute || - DKind == OMPD_teams_distribute_simd || - DKind == OMPD_teams_distribute_parallel_for_simd || - DKind == OMPD_teams_distribute_parallel_for || - DKind == OMPD_teams_loop; + if (DKind == OMPD_teams) + return true; + auto leafs = getLeafConstructs(DKind); ---------------- skatrak wrote:
> Leafs is an accepted form. Could you point to some source where that's described? After a quick search, I find that "leaves" is the widely accepted plural of "leaf", and that "leafs" is only recognized by certain dictionaries. One instance where it's not: https://dictionary.cambridge.org/dictionary/english/leaf. https://github.com/llvm/llvm-project/pull/83625 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits