[PATCH] D14176: Only copy small types in modernize-loop-convert.
Angel Garcia via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 07:42:26 PDT 2015
angelgarcia created this revision.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: cfe-commits, alexfh.
If the size of the type is above a certain bound, we'll take a const reference. This bound can be set as an option. For now, the default value is 16 bytes.
http://reviews.llvm.org/D14176
Files:
clang-tidy/modernize/LoopConvertCheck.cpp
clang-tidy/modernize/LoopConvertCheck.h
clang-tidy/modernize/ModernizeTidyModule.cpp
test/clang-tidy/Inputs/modernize-loop-convert/structures.h
test/clang-tidy/modernize-loop-convert-basic.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14176.38736.patch
Type: text/x-patch
Size: 6153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151029/e086d14c/attachment.bin>
More information about the cfe-commits
mailing list