summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/warn-range-loop-analysis.cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix typo "varaible"Nico Weber2016-08-241-1/+1
| | | | llvm-svn: 279639
* Add new warning -Wrange-loop-analysis to warn on copies during loops.Richard Trieu2015-04-131-0/+299
-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
OpenPOWER on IntegriCloud