]> granicus.if.org Git - clang/commit
[OpenMP] Refactor const restriction for linear
authorJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 4 Jan 2019 22:12:13 +0000 (22:12 +0000)
committerJoel E. Denny <jdenny.ornl@gmail.com>
Fri, 4 Jan 2019 22:12:13 +0000 (22:12 +0000)
commit3bd81ff22212f694b92736739bfcaccd86da737c
treee64381d43542c0f656d2dd5dd86625b370a8328d
parent5b0be04e490e2b66c2abb51292e01112b6834ef4
[OpenMP] Refactor const restriction for linear

As discussed in D56113, this patch refactors the implementation of the
const restriction for linear to reuse a function introduced by D56113.
A side effect is that, if a variable has mutable members, this
diagnostic is now skipped, and the diagnostic for the variable not
being an integer or pointer is reported instead.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D56299

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@350441 91177308-0d34-0410-b5e6-96231b3b80d8
16 files changed:
lib/Sema/SemaOpenMP.cpp
test/OpenMP/distribute_parallel_for_simd_linear_messages.cpp
test/OpenMP/distribute_simd_linear_messages.cpp
test/OpenMP/for_linear_messages.cpp
test/OpenMP/for_simd_linear_messages.cpp
test/OpenMP/parallel_for_linear_messages.cpp
test/OpenMP/parallel_for_simd_linear_messages.cpp
test/OpenMP/simd_linear_messages.cpp
test/OpenMP/target_parallel_for_linear_messages.cpp
test/OpenMP/target_parallel_for_simd_linear_messages.cpp
test/OpenMP/target_simd_linear_messages.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_linear_messages.cpp
test/OpenMP/target_teams_distribute_simd_linear_messages.cpp
test/OpenMP/taskloop_simd_linear_messages.cpp
test/OpenMP/teams_distribute_parallel_for_simd_linear_messages.cpp
test/OpenMP/teams_distribute_simd_linear_messages.cpp