llvm-project/clang-tools-extra/clang-tidy/misc
Alexander Kornienko bc0c423a46 [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move
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
2014-12-05 11:59:05 +00:00
..
ArgumentCommentCheck.cpp Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
ArgumentCommentCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
BoolPointerImplicitConversion.cpp [clang-tidy] Use new ASTMatchers to identify template instantiations instead of copying it everywhere. 2014-09-03 13:21:51 +00:00
BoolPointerImplicitConversion.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
CMakeLists.txt [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
Makefile
MiscTidyModule.cpp [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Add a checker for swapped arguments. 2014-07-14 14:24:30 +00:00
SwappedArgumentsCheck.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UndelegatedConstructor.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UndelegatedConstructor.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UniqueptrResetRelease.cpp [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
UniqueptrResetRelease.h [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
UnusedRAII.cpp [clang-tidy] Eliminate inline copies of InTemplateInstantiation matcher. 2014-09-03 13:30:28 +00:00
UnusedRAII.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00
UseOverride.cpp clang-tidy: Add override before the first attribute. 2014-11-25 10:45:23 +00:00
UseOverride.h Implemented clang-tidy-check-specific options. 2014-09-12 08:53:36 +00:00