HomePhabricator

Improve Wrange-loop-analyses for rvalue reference

Authored by Mordante on Jan 1 2020, 8:23 AM.

Description

Improve Wrange-loop-analyses for rvalue reference

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.

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

Details

Committed
MordanteJan 1 2020, 11:02 AM
Differential Revision
D71806: Improve Wrange-loop-analyses for rvalue reference
Parents
rGf022a5a792fd: Adds fixit hints to the -Wrange-loop-analysis
Branches
Unknown
Tags
Unknown