[all-commits] [llvm/llvm-project] 7ed5bb: [Clang][OpenMP] Skip Sema actions for invalid assu...

OHNope via All-commits all-commits at lists.llvm.org
Sun Aug 2 07:06:53 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ed5bbedff3fa9dae894c2d939c7936f7a51a91f
      https://github.com/llvm/llvm-project/commit/7ed5bbedff3fa9dae894c2d939c7936f7a51a91f
  Author: OHNope <64253805+OHNope at users.noreply.github.com>
  Date:   2026-08-02 (Sun, 02 Aug 2026)

  Changed paths:
    M clang/lib/Parse/ParseOpenMP.cpp
    R clang/test/SemaOpenMP/gh197162.c
    A clang/test/SemaOpenMP/invalid-clause-on-directive.c

  Log Message:
  -----------
  [Clang][OpenMP] Skip Sema actions for invalid assumption clauses (#212822)

Do not call the Sema actions for absent, contains, and nullary assumption
clauses after the parser has diagnosed that the clause is not allowed on the
current directive.

Add assertions documenting that these Sema actions must only receive clauses
allowed on the current directive, and add tests covering all affected clause
kinds.

Fixes #212780.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list