summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL/func.cl
Commit message (Collapse)AuthorAgeFilesLines
* [OpenCL] Allow function declaration with empty argument list.Alexey Bader2017-10-111-1/+4
| | | | | | | | | | | | | | | | Treat 'f()' as 'f(void)' rather than a function w/o a prototype. Reviewers: Anastasia, yaxunl Reviewed By: Anastasia, yaxunl Subscribers: cfe-commits, echuraev, chapuni Differential Revision: https://reviews.llvm.org/D33681 Re-apply revision 306653. llvm-svn: 315453
* [OpenCL] Harden function pointer diagnostics.Alexey Bader2017-06-021-0/+7
| | | | | | | | | | | | | | Summary: Improve OpenCL type checking by rejecting function pointer types. Reviewers: Anastasia, yaxunl Reviewed By: Anastasia Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D33821 llvm-svn: 304575
* [OpenCL] Diagnose variadic argumentsAnastasia Stulova2016-10-281-0/+26
OpenCL disallows using variadic arguments (s6.9.e and s6.12.5 OpenCL v2.0) apart from some exceptions: - printf - enqueue_kernel This change adds error diagnostic for variadic functions but accepts printf and any compiler internal function (which should cover __enqueue_kernel_XXX cases). It also unifies diagnostic with block prototype and adds missing uncaught cases for blocks. llvm-svn: 285395
OpenPOWER on IntegriCloud