Page MenuHomePhabricator

Improve Wrange-loop-analyses for rvalue reference

Authored by Mordante on Dec 22 2019, 7:05 AM.



The Wrange-loop-analyses warns if a copy is made. Suppress this warning when a temporary is bound to a rvalue reference.

While fixing this issue also found a copy-paste error in test6, which is also fixed.

Depends on D68913

Diff Detail

Event Timeline

Mordante created this revision.Dec 22 2019, 7:05 AM
This revision is now accepted and ready to land.Dec 22 2019, 8:55 AM
This revision was automatically updated to reflect the committed changes.