]> granicus.if.org Git - clang/commit
Fix errored return value in CheckFunctionReturnType and add a fixit hint
authorErich Keane <erich.keane@intel.com>
Wed, 10 May 2017 20:03:16 +0000 (20:03 +0000)
committerErich Keane <erich.keane@intel.com>
Wed, 10 May 2017 20:03:16 +0000 (20:03 +0000)
commit84e1942597fa8b34584a6fc1cceb4abf0e4eb0ca
treee89d09a08e84563ccf81f02a927cc3b1dccf15b0
parent0302d8dabe6bc7b90d70126a2e8b07cce4733e85
Fix errored return value in CheckFunctionReturnType and add a fixit hint

As discovered by ChenWJ and listed on cfe-dev, the error for Objective C
return type ended up being wrong. This fixes that. Additionally, as a
"while we're there", the other usages of this error and the usage of the
FP above both use a FixItHint, so I'll add it here.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302720 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaType.cpp
test/SemaObjC/method-bad-param.m
test/SemaObjCXX/interface-return-type.mm [new file with mode: 0644]