diff options
author | Richard Trieu <rtrieu@google.com> | 2015-04-13 22:08:55 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2015-04-13 22:08:55 +0000 |
commit | 3e1d483e0efb64e2e6af5407bd3d1c8db2150b35 (patch) | |
tree | bed34eef3b2717ec039ef870968ca08bddaa57cb /llvm/test/ExecutionEngine | |
parent | 653457831b8be45d357a697e96a777f90ea6b6ef (diff) | |
download | bcm5719-llvm-3e1d483e0efb64e2e6af5407bd3d1c8db2150b35.tar.gz bcm5719-llvm-3e1d483e0efb64e2e6af5407bd3d1c8db2150b35.zip |
Add new warning -Wrange-loop-analysis to warn on copies during loops.
-Wrange-loop-analysis is a subgroup of -Wloop-analysis and will warn when
a range-based for-loop makes copies of the elements in the range. If possible,
suggest the proper type to prevent copies, or the non-reference to help
distinguish copy versus non-copy forms. Existing warnings in -Wloop-analysis
are moved to -Wfor-loop-analysis, also a subgroup of -Wloop-analysis.
Differential Revision: http://reviews.llvm.org/D4169
llvm-svn: 234804
Diffstat (limited to 'llvm/test/ExecutionEngine')
0 files changed, 0 insertions, 0 deletions