summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/misc/UniqueptrResetRelease.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> moveAlexander Kornienko2014-12-051-0/+66
Replace x.reset(y.release()); with x = std::move(y); If y is rvalue, replace with x = y; instead. http://reviews.llvm.org/D6485 Patch by Alexey Sokolov! llvm-svn: 223460
OpenPOWER on IntegriCloud