[OPENMP]Fix PR41767: diagnose DSA for variables in clauses with
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 6 May 2019 20:07:20 +0000 (20:07 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 6 May 2019 20:07:20 +0000 (20:07 +0000)
commit279365005edb09b60bede933689b0900331fa28b
tree9856cf3834e1aab18f4c96526b4db5ee4f4bfa43
parentdab6189a591bfbfc82b685e985299e8b8d69fcf5
[OPENMP]Fix PR41767: diagnose DSA for variables in clauses with
default(none).

If the combined directive has default(none) clause and has clauses for
inner directive that reference some variables, for which data-sharing
attributes are not specified, the error messages should be emitted for
such variables.

llvm-svn: 360073
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/distribute_parallel_for_ast_print.cpp
clang/test/OpenMP/distribute_parallel_for_simd_ast_print.cpp
clang/test/OpenMP/parallel_for_ast_print.cpp
clang/test/OpenMP/parallel_for_schedule_messages.cpp
clang/test/OpenMP/target_parallel_for_ast_print.cpp
clang/test/OpenMP/target_parallel_for_simd_ast_print.cpp
clang/test/OpenMP/target_teams_distribute_parallel_for_if_messages.cpp