llvm-project/clang-tools-extra/clang-tidy
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
..
google [clang-tidy] google-explicit-constructor: don't match in template instantiations 2014-11-30 19:41:41 +00:00
llvm [clang-tidy] Bring order to check registration. 2014-10-26 01:41:14 +00:00
misc [clang-tidy] Add clang-tidy check for unique_ptr's reset+release -> move 2014-12-05 11:59:05 +00:00
readability [clang-tidy] Move the missing namespace comment warnings to the closing brace 2014-11-17 17:32:32 +00:00
tool [clang-tidy] Update help messages and docs. 2014-12-03 14:03:03 +00:00
utils Fix llvm-header-guard check. 2014-10-15 12:18:35 +00:00
CMakeLists.txt [CMake] Add dependencies on clangToolingCore. 2014-10-30 00:44:01 +00:00
ClangTidy.cpp Add flag --enable-check-profile to clang-tidy. 2014-10-23 17:23:20 +00:00
ClangTidy.h Add flag --enable-check-profile to clang-tidy. 2014-10-23 17:23:20 +00:00
ClangTidyDiagnosticConsumer.cpp [clang-tidy] Count errors in ClangTidyDiagnosticConsumer 2014-11-20 12:05:51 +00:00
ClangTidyDiagnosticConsumer.h Add flag --enable-check-profile to clang-tidy. 2014-10-23 17:23:20 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModuleRegistry.h clang-tidy: Instantiate llvm::Registry<clang::tidy::ClangTidyModule>. 2014-07-03 14:12:47 +00:00
ClangTidyOptions.cpp Remove uses of StringMap::GetOrCreateValue in favor of stl-compatible API usage 2014-11-19 03:05:07 +00:00
ClangTidyOptions.h [clang-tidy] Added -system-headers option. 2014-10-28 22:16:13 +00:00
Makefile Add NamespaceCommentCheck to the Google module. 2014-09-22 10:41:39 +00:00