llvm-project/clang-tools-extra/clang-tidy
Gabor Horvath d4637fb433 [clang-tidy] Checker for inaccurate use of erase() method.
Algorithms like remove() does not actually remove any element from the
container but returns an iterator to the first redundant element at the end
of the container. These redundant elements must be removed using the
erase() method. This check warns when not all of the elements will be
removed due to using an inappropriate overload.

Reviewer: alexfh

Differential Revision: http://reviews.llvm.org/D7496

llvm-svn: 228679
2015-02-10 09:14:26 +00:00
..
google [clang-tidy] Detect dependent initializer_lists in google-explicit-constructor. 2015-02-05 12:49:07 +00:00
llvm [cleanup] Re-sort the #include lines with llvm/utils/sort_includes.py 2015-01-14 11:24:38 +00:00
misc [clang-tidy] Checker for inaccurate use of erase() method. 2015-02-10 09:14:26 +00:00
readability [clang-tidy] Use shrink_to_fit instead of copy and swap trick 2015-01-23 15:10:37 +00:00
tool [clang-tidy] Fix a typo. 2014-12-09 15:02:17 +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 Fixed a typo in a comment. NFC. 2014-12-19 15:37:02 +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 [clang-tidy] Don't ignore default set of checks when a config file is found. 2015-02-05 14:50:17 +00:00
ClangTidyOptions.h [clang-tidy] Make ClangTidyOptionsProvider::getOptions return by value. 2015-01-20 09:48:51 +00:00
Makefile Add NamespaceCommentCheck to the Google module. 2014-09-22 10:41:39 +00:00
add_new_check.py [clang-tidy] Extended the example check, added a fix-it, etc. 2014-12-09 12:43:09 +00:00