]> granicus.if.org Git - clang/commit
[OPENMP] Check that allocated variables are used in private clauses.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Apr 2019 14:25:31 +0000 (14:25 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 1 Apr 2019 14:25:31 +0000 (14:25 +0000)
commitc0876c1cbb17e5ecfffa8cc74e2f80fc47a94185
tree7b9b0fe959cc4b4382d6de84a89ed13d768c682e
parentdbc3b913b6334f75bcd8dd6331aaef0770334228
[OPENMP] Check that allocated variables are used in private clauses.

According to OpenMP 5.0 standard, 2.11.4 allocate Clause, Restrictions,
For any list item that is specified in the allocate clause on a
directive, a data-sharing attribute clause that may create a private
copy of that list item must be specified on the same directive. Patch
adds the checks for this restriction.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@357390 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOpenMP.cpp
test/OpenMP/allocate_messages.cpp