]> granicus.if.org Git - clang/commit
[ObjC] The declarator for a block literal should be a definition
authorAlex Lorenz <arphaman@gmail.com>
Fri, 6 Jan 2017 11:31:12 +0000 (11:31 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 6 Jan 2017 11:31:12 +0000 (11:31 +0000)
commitda684cc5fb0320f69201b1baf1eb8b9cc7d04cba
tree645d6d7771cc4afedd4ea4cace9f06b8a85e0612
parent95ab3391525058956e409754b36fd04f2b9c5bb8
[ObjC] The declarator for a block literal should be a definition

This change avoids the -Wstrict-prototypes warning for block literals with an
empty argument list or without argument lists.

rdar://15060615

Differential Revision: https://reviews.llvm.org/D28296

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291231 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExpr.cpp
test/Sema/warn-strict-prototypes.m
test/SemaObjC/block-omitted-return-type.m