[PATCH] D12675: Avoid using rvalue references with trivially copyable types.

Angel Garcia via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 7 06:14:32 PDT 2015


angelgarcia created this revision.
angelgarcia added a reviewer: klimek.
angelgarcia added subscribers: cfe-commits, alexfh.

When the dereference operator returns a value that is trivially
copyable (like a pointer), copy it. After this change, modernize-loop-convert
check can be applied to the whole llvm source code without breaking any build
or test.

http://reviews.llvm.org/D12675

Files:
  clang-tidy/modernize/LoopConvertCheck.cpp
  clang-tidy/modernize/LoopConvertCheck.h
  test/clang-tidy/modernize-loop-convert-basic.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12675.34155.patch
Type: text/x-patch
Size: 7362 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150907/efe664a9/attachment.bin>


More information about the cfe-commits mailing list