aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Basic
diff options
context:
space:
mode:
authorJoey Gouly <joey.gouly@arm.com>2013-01-29 10:54:06 +0000
committerJoey Gouly <joey.gouly@arm.com>2013-01-29 10:54:06 +0000
commit98f988dc1bea127fbc2db76d9ffafdcf5f4435e4 (patch)
tree5be538ed53df7bd7b42cebf9f4fe8ece462e369a /include/clang/Basic
parente702ff302bdb3c53a252b0bcd2deab72fdee274f (diff)
Add a diagnostic for an OpenCL kernel with a pointer pointer argument.
Also refactor the surrounding code a little. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic')
-rw-r--r--include/clang/Basic/DiagnosticSemaKinds.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/clang/Basic/DiagnosticSemaKinds.td b/include/clang/Basic/DiagnosticSemaKinds.td
index 86c0691b07..6e27d1388b 100644
--- a/include/clang/Basic/DiagnosticSemaKinds.td
+++ b/include/clang/Basic/DiagnosticSemaKinds.td
@@ -6105,6 +6105,8 @@ def err_invalid_astype_of_different_size : Error<
"invalid reinterpretation: sizes of %0 and %1 must match">;
def err_static_kernel : Error<
"kernel functions cannot be declared static">;
+def err_opencl_ptrptr_kernel_arg : Error<
+ "kernel argument cannot be declared as a pointer to a pointer">;
def err_static_function_scope : Error<
"variables in function scope cannot be declared static">;
def err_opencl_bitfields : Error<