[clang-tools-extra] r315323 - [clangd] Added forgotten return in UniqueFunction.

Ilya Biryukov via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 23 06:27:47 PDT 2017


Sorry for late response, was on vacation.

The following commit (r315325) adds code coverage for this case.
But you are correct, we were missing usages of the class with non-void
return type before that.


On Mon, Oct 16, 2017 at 7:12 PM, David Blaikie <dblaikie at gmail.com> wrote:

> Is there missing test coverage for this?
>
> On Tue, Oct 10, 2017 at 9:12 AM Ilya Biryukov via cfe-commits <
> cfe-commits at lists.llvm.org> wrote:
>
>> Author: ibiryukov
>> Date: Tue Oct 10 09:12:47 2017
>> New Revision: 315323
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=315323&view=rev
>> Log:
>> [clangd] Added forgotten return in UniqueFunction.
>>
>> This hasn't bitten us because we only used functions returning
>> 'void'.
>>
>> Modified:
>>     clang-tools-extra/trunk/clangd/Function.h
>>
>> Modified: clang-tools-extra/trunk/clangd/Function.h
>> URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/
>> trunk/clangd/Function.h?rev=315323&r1=315322&r2=315323&view=diff
>> ============================================================
>> ==================
>> --- clang-tools-extra/trunk/clangd/Function.h (original)
>> +++ clang-tools-extra/trunk/clangd/Function.h Tue Oct 10 09:12:47 2017
>> @@ -46,7 +46,7 @@ public:
>>
>>    Ret operator()(Args... As) {
>>      assert(CallablePtr);
>> -    CallablePtr->Call(std::forward<Args>(As)...);
>> +    return CallablePtr->Call(std::forward<Args>(As)...);
>>    }
>>
>>  private:
>>
>>
>> _______________________________________________
>> cfe-commits mailing list
>> cfe-commits at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
>>
>


-- 
Regards,
Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171023/4c9b3c17/attachment.html>


More information about the cfe-commits mailing list