]> granicus.if.org Git - clang/commit
[OpenMP] Add checks for requires and target directives.
authorGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Thu, 18 Apr 2019 19:53:43 +0000 (19:53 +0000)
committerGheorghe-Teodor Bercea <gheorghe-teod.bercea@ibm.com>
Thu, 18 Apr 2019 19:53:43 +0000 (19:53 +0000)
commitdc7729e594a7cec142b37cc64f7bb493be22bc40
treebe3a6443fba1c84d52e16539eea36da69cbbc902
parent7b00921f6389b001a351577257438105cdac965c
[OpenMP] Add checks for requires and target directives.

Summary: The requires directive containing target related clauses must appear before any target region in the compilation unit.

Reviewers: ABataev, AlexEichenberger, caomhin

Reviewed By: ABataev

Subscribers: guansong, jfb, jdoerfert, cfe-commits

Tags: #clang

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358709 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaOpenMP.cpp
test/OpenMP/requires_messages.cpp
test/OpenMP/requires_target_messages.cpp [new file with mode: 0644]