[OpenMP] Do not propagate match extensions to nested contexts
authorJohannes Doerfert <johannes@jdoerfert.de>
Sun, 31 Jan 2021 06:37:56 +0000 (00:37 -0600)
committerJohannes Doerfert <johannes@jdoerfert.de>
Fri, 12 Mar 2021 05:31:21 +0000 (23:31 -0600)
commitad9e98b8efa0138559eb640023695dab54967a8d
tree459c3ecc15fa809ec4c57e10b0ff593d74386621
parentcd1bd6e5870044f3e35da3f713782563e0014c5d
[OpenMP] Do not propagate match extensions to nested contexts

If we have nested declare variant context, it doesn't make sense to
inherit the match extension from the parent. Instead, just skip it.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D95764
clang/include/clang/Basic/AttrDocs.td
clang/lib/Parse/ParseOpenMP.cpp
clang/test/OpenMP/begin_declare_variant_nested_propagation.c [new file with mode: 0644]
llvm/lib/Frontend/OpenMP/OMPContext.cpp