[PATCH] D71806: Improve Wrange-loop-analyses for rvalue reference
Mark de Wever via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 22 07:05:40 PST 2019
Mordante created this revision.
Mordante added reviewers: rsmith, aaron.ballman, xbolva00.
Mordante added a project: clang.
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 <https://reviews.llvm.org/D68913>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71806
Files:
clang/lib/Sema/SemaStmt.cpp
clang/test/SemaCXX/warn-range-loop-analysis.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71806.235050.patch
Type: text/x-patch
Size: 12122 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191222/f352520d/attachment-0001.bin>
More information about the cfe-commits
mailing list