hokein accepted this revision.
hokein added a comment.
This revision is now accepted and ready to land.

In D97577#2592827 <https://reviews.llvm.org/D97577#2592827>, @flx wrote:

> In D97577#2592093 <https://reviews.llvm.org/D97577#2592093>, @lebedev.ri 
> wrote:
>
>> It is best not to change existing tests, but add new ones.
>
> Could elaborate on this, Roman?
>
> In this case the tests use special auto convertible types with the intention 
> to test that the check doesn't trigger because the loop variable needs to be 
> constructed. But the reason they don't trigger is that the loop variable 
> erroneously is already a reference type.
>
> If we keep the tests as is we should rename the test functions and use 
> different types or document that the real reason they don't trigger is that 
> they already are const reference types, but we already have a test for that 
> as well.

The explanation sounds plausible, thanks.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D97577/new/

https://reviews.llvm.org/D97577

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to