[OpenCL] Improved diagnostics of OpenCL types.
- Changes diagnostics for Blocks to be implicitly const qualified OpenCL v2.0 s6.12.5. - Added and unified diagnostics of some OpenCL special types: blocks, images, samplers, pipes. These types are intended for use with the OpenCL builtin functions only and, therefore, most regular uses are not allowed including assignments, arithmetic operations, pointer dereferencing, etc. Review: http://reviews.llvm.org/D21989 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275061 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Basic/DiagnosticSemaKinds.td 0 additions, 2 deletionsinclude/clang/Basic/DiagnosticSemaKinds.td
- lib/Sema/SemaDecl.cpp 0 additions, 10 deletionslib/Sema/SemaDecl.cpp
- lib/Sema/SemaExpr.cpp 19 additions, 16 deletionslib/Sema/SemaExpr.cpp
- lib/Sema/SemaType.cpp 20 additions, 2 deletionslib/Sema/SemaType.cpp
- test/SemaOpenCL/invalid-block.cl 18 additions, 14 deletionstest/SemaOpenCL/invalid-block.cl
- test/SemaOpenCL/invalid-image.cl 9 additions, 3 deletionstest/SemaOpenCL/invalid-image.cl
- test/SemaOpenCL/invalid-pipes-cl2.0.cl 14 additions, 3 deletionstest/SemaOpenCL/invalid-pipes-cl2.0.cl
- test/SemaOpenCL/sampler_t.cl 15 additions, 4 deletionstest/SemaOpenCL/sampler_t.cl
Loading
Please register or sign in to comment