]> granicus.if.org Git - clang/commit
[OPENMP5.0]Diagnose global variables in lambda not marked as declare
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 16 Aug 2019 20:15:02 +0000 (20:15 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 16 Aug 2019 20:15:02 +0000 (20:15 +0000)
commitca35ec3b391ab9e6131d973cfe72870a13394df2
treed417789db62031567d3aa5395de22aa19ee42d06
parent4eeccf9ca40353f027441033bf35ddef2748ac40
[OPENMP5.0]Diagnose global variables in lambda not marked as declare
target.

According to OpenMP 5.0, if a lambda declaration and definition appears between a declare target directive and the matching end declare target directive, all variables that are captured by the lambda expression must also appear in a to clause.

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