[PATCH] [Clang Tidy]: Use shrink_to_fit instead of copy and swap trick.

Gábor Horváth xazax.hun at gmail.com
Fri Jan 23 05:43:48 PST 2015


Thank you for pointing out the issue. It looks like not matching on instantiations solves the problem.


http://reviews.llvm.org/D7087

Files:
  clang-tidy/readability/CMakeLists.txt
  clang-tidy/readability/ReadabilityTidyModule.cpp
  clang-tidy/readability/ShrinkToFitCheck.cpp
  clang-tidy/readability/ShrinkToFitCheck.h
  test/clang-tidy/readability-shrink-to-fit.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7087.18667.patch
Type: text/x-patch
Size: 9416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150123/aa517b27/attachment.bin>


More information about the cfe-commits mailing list