[all-commits] [llvm/llvm-project] 53fe3d: [OpenMP] Allow begin/end declare variant in execut...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Mon May 12 09:06:25 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 53fe3df0f69910f394f80e92eff1f2bbd946055c
      https://github.com/llvm/llvm-project/commit/53fe3df0f69910f394f80e92eff1f2bbd946055c
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/lib/Parse/ParseOpenMP.cpp
    A clang/test/OpenMP/begin_declare_variant_executable_scope.c
    M clang/test/OpenMP/begin_declare_variant_messages.c

  Log Message:
  -----------
  [OpenMP] Allow begin/end declare variant in executable context (#139344)

We are missing a few declerative directives in the parser for executable
and declerative directives causing us to error out if they are inside of
functions. This adds support for begin/end declare variant by reusing
the logic we used in global scope.



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