]> granicus.if.org Git - clang/commit
[OPENMP] Allow use of declare target directive inside struct
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 3 Oct 2017 20:00:00 +0000 (20:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 3 Oct 2017 20:00:00 +0000 (20:00 +0000)
commit3201ad61aa8da4cec3e33e9d2c407082f574266c
tree5d48c4044a55a741f983903ee8430e6a6d52a111
parentedf4483622df7b5207947b5af5cbcad1aa0b8ae2
[OPENMP] Allow use of declare target directive inside struct
declaration.

Patch allows using of the `#pragma omp declare target`| `#pragma omp end
declare target` directives inside the structures if we need to mark as
declare target only some static members.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseOpenMP.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/declare_target_ast_print.cpp
test/OpenMP/declare_target_messages.cpp