[PATCH] D14198: Make the modernize-loop-convert's const-detection smarter.
Angel Garcia via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 30 06:27:40 PDT 2015
angelgarcia created this revision.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: alexfh, cfe-commits.
Now, it detects that several kinds of usages are can't modify the elements. Examples:
-When an usage is a call to a const member function or operator of the element.
-If the element is used as an argument to a function or constructor that takes a const-reference or a value.
-LValue to RValue conversion, if the element is a fundamental type (which allows the use of most of the builtin operators).
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 32561 bytes
Desc: not available
More information about the cfe-commits