[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)
commit502ec49793faad5587f8c855a5f8914837594987
tree4006aeef99672b41aaed8cb5b03da4e55e360168
parent56138de385947e1b1c3ea4792c38a10893435b88
[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.

llvm-svn: 314833
clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_target_ast_print.cpp
clang/test/OpenMP/declare_target_messages.cpp