summaryrefslogtreecommitdiff
path: root/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2018-05-09 13:16:17 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2018-05-09 13:16:17 +0000
commit9741e8bd919adb88acf18d39dea02a8da9cb90bd (patch)
treec6040a2df7cfc89faac271c202f9ea969346e6f9 /lib/AST/Expr.cpp
parent092d4340e185d98c63b5201095d10489c0490206 (diff)
downloadclang-9741e8bd919adb88acf18d39dea02a8da9cb90bd.tar.gz
[OpenCL] Restrict various keywords in OpenCL C++ mode
Restrict the following keywords in the OpenCL C++ language mode, according to Sections 2.2 & 2.9 of the OpenCL C++ 1.0 Specification. - dynamic_cast - typeid - register (already restricted in OpenCL C, update the diagnostic) - thread_local - exceptions (try/catch/throw) - access qualifiers read_only, write_only, read_write Support the `__global`, `__local`, `__constant`, `__private`, and `__generic` keywords in OpenCL C++. Leave the unprefixed address space qualifiers such as global available, i.e., do not mark them as reserved keywords in OpenCL C++. libclcxx provides explicit address space pointer classes such as `global_ptr` and `global<T>` that are implemented using the `__`-prefixed qualifiers. Differential Revision: https://reviews.llvm.org/D46022 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@331874 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Expr.cpp')
0 files changed, 0 insertions, 0 deletions