]> granicus.if.org Git - clang/commit
[OPENMP]Check that global vars require predefined allocator.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Mar 2019 18:39:11 +0000 (18:39 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 19 Mar 2019 18:39:11 +0000 (18:39 +0000)
commit23e5d23710c537c358580c137a3f1ea10c425b9c
treeb583096139ca925ee9a95c2dc5eb6f3c7301fd49
parent40483ed1d2d7d02176e241baccc01c42464dbd11
[OPENMP]Check that global vars require predefined allocator.

According to OpenMP, 2.11.3 allocate Directive, Restrictions, C / C++,
if a list item has a static storage type, the allocator expression in
  the allocator clause must be a constant expression that evaluates to
  one of the predefined memory allocator values. Added check for this
  restriction.

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