This is an archive of the discontinued LLVM Phabricator instance.

[pstl] Avoid shadowing explicit lambda capture with lambda parameter
ClosedPublic

Authored by ldionne on Dec 20 2018, 12:12 PM.

Details

Summary

Recent Clangs give an error for this. Note that the size of this diff is
caused by running clang-format on the result of removing the captures.
I guess we'll see how well that works for us.

Diff Detail

Repository
rL LLVM

Event Timeline

ldionne created this revision.Dec 20 2018, 12:12 PM
ldionne changed the repository for this revision from rCXX libc++ to rPSTL pstl.Dec 20 2018, 12:12 PM
ldionne edited reviewers, added: MikeDvorskiy; removed: jfb, rodgert.Dec 21 2018, 8:36 AM
ldionne added subscribers: rodgert, jfb.

Moving JF and Thomas to subscribers because both are on PTO.

Ping. This change is trivial but it prevents compiling on recent Clangs.

This looks reasonable to me.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 7 2019, 9:35 AM
This revision was automatically updated to reflect the committed changes.

Yes, a captured __comp instance is redundant in the all cases here due to it is passed via argument's list explicitly.