[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)
commite106f25f056b1941b9108157eaf21f7a9a68b139
treeb60244872ba56b2237fc2ad63c732e5b186ffd9a
parent150a7ec2dc04b116be15ba0dda7001d1e1de6ed7
[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.

llvm-svn: 357390
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/allocate_messages.cpp