]> granicus.if.org Git - clang/commit
[OpenCL] Allow function declaration with empty argument list.
authorAlexey Bader <alexey.bader@intel.com>
Wed, 11 Oct 2017 11:16:31 +0000 (11:16 +0000)
committerAlexey Bader <alexey.bader@intel.com>
Wed, 11 Oct 2017 11:16:31 +0000 (11:16 +0000)
commitcaaaf1b95ed9e016f314b61bf74453da91dda1ce
tree7509e1e361f018b01aa07b1123d18ef73b89489d
parent41ca94e92225baa5370fcbdb414d3999ef4eabbe
[OpenCL] Allow function declaration with empty argument list.

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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315453 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseDecl.cpp
lib/Sema/SemaType.cpp
test/SemaOpenCL/func.cl
test/SemaOpenCL/invalid-pipes-cl2.0.cl