]> granicus.if.org Git - clang/commit
Allow block returns in C++ with the form
authorDouglas Gregor <dgregor@apple.com>
Sun, 5 Jun 2011 05:14:41 +0000 (05:14 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sun, 5 Jun 2011 05:14:41 +0000 (05:14 +0000)
commitbc3e64f37fe2c68ab4bfcedf6f428e0198f2e349
tree76c5d1c4ad904126364bdd3b91f46f86dda34a3f
parent6a576ab708d3aa7d40e5d867ab1de5d3cb507553
Allow block returns in C++ with the form

  return <expression> ;

in blocks with a 'void' result type, so long as <expression> has type
'void'. This follows the rules for C++ functions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132658 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmt.cpp
test/SemaObjCXX/blocks.mm