]> granicus.if.org Git - clang/commit
[OpenCL] Support pipe keyword in C++ mode
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 22 May 2019 13:12:20 +0000 (13:12 +0000)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Wed, 22 May 2019 13:12:20 +0000 (13:12 +0000)
commitec36dad1b2089ec92370a36615b7828152e34a75
tree3f430d2b8ba8eac6eeec36f1c31cf6c4073ded48
parentdc1665e0c4c1261540d881b75c8b97d9121c6eed
[OpenCL] Support pipe keyword in C++ mode

Support the OpenCL C pipe feature in C++ for OpenCL mode, to preserve
backwards compatibility with OpenCL C.

Various changes had to be made in Parse and Sema to enable
pipe-specific diagnostics, so enable a SemaOpenCL test for C++.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361382 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TokenKinds.def
lib/Basic/Builtins.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseTentative.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/SemaOpenCL/invalid-pipes-cl2.0.cl