llvm-project/clang-tools-extra/test/cpp11-migrate/LoopConvert
Edwin Vane 61af48ce4e Improve loop convert's variable aliasing
Loop convert's variable name aliasing may cause issues if the variable is
declared as a value (copy). The converted loop will declare the variable as a
reference which may inadvertently cause modifications to the container if it
were used and modified as a temporary copy.

This is fixed by preserving the reference or value qualifiers of the aliased
variable. That is, if the variable was declared as a value the loop variable
will also be declared as a value and similarly for references.

Fixes: PR15600
Author: Jack Yang <jack.yang@intel.com>
llvm-svn: 178485
2013-04-01 18:15:06 +00:00
..
Inputs Adding a failing test case for cpp11-migrate's Loop Convert Transform 2013-03-25 19:24:24 +00:00
array.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
confidence.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
dependency.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
iterator.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
macro_problem.cpp Adding a failing test case for cpp11-migrate's Loop Convert Transform 2013-03-25 19:24:24 +00:00
naming-alias.cpp Improve loop convert's variable aliasing 2013-04-01 18:15:06 +00:00
naming-conflict.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
negative-iterator.cpp
negative-multi-end-call.cpp
negative-pseudoarray-extra.cpp
negative-pseudoarray.cpp
negative.cpp
nesting.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
nocompile.cpp
pseudoarray.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00
single-iterator.cpp Extend loop variable naming checks 2013-03-08 14:15:18 +00:00