llvm-project/clang-tools-extra/clang-tidy
Alexander Kornienko 7532d3e93d [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl
containers.

Summary:
sizeof(some_std_string) is likely to be an error. This check finds this
pattern and suggests using .size() instead.

Reviewers: djasper, klimek, aaron.ballman

Subscribers: aaron.ballman, cfe-commits

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

llvm-svn: 247297
2015-09-10 16:37:46 +00:00
..
google Disable clang-tidy Google checkers when not compiling in C++ mode. None of the checkers require additional testing as the tests will not compile for other languages or modes, or the checkers would never match a valid construct. 2015-09-02 16:20:42 +00:00
llvm [clang-tidy] Fix llvm-include-order check on Windows. 2015-09-04 15:46:51 +00:00
misc [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl 2015-09-10 16:37:46 +00:00
modernize [clang-tidy] Updated docs. 2015-09-08 09:44:04 +00:00
readability [clang-tidy] Add inconsistent declaration parameter name check 2015-09-10 10:07:11 +00:00
tool [clang-tidy] Fix run-clang-tidy.py. 2015-09-08 10:31:36 +00:00
utils [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt [clang-tidy] Move IncludeSorter.* and IncludeInserter.* to clang-tidy/utils/ 2015-08-14 14:31:31 +00:00
ClangTidy.cpp [clang-tidy] Static Analyzer checker configuration options pass-through. 2015-03-11 17:25:22 +00:00
ClangTidy.h Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyDiagnosticConsumer.cpp Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyDiagnosticConsumer.h Reapplying r246209, which exposed language options to the checkers. This time disable UseNullptrCheck when not compiling in C++ mode, but still allow in C++11 mode since it's likely the user wishes to modernize their code. 2015-08-28 13:20:46 +00:00
ClangTidyModule.cpp [clang-tidy] Default options in modules. 2014-10-16 11:27:57 +00:00
ClangTidyModule.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +00:00
ClangTidyModuleRegistry.h [clang-tidy] Fixed header guards using clang-tidy llvm-header-guard check. NFC. 2015-03-09 16:52:33 +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 FileOptionsProvider fields protected to make extending it easier 2015-08-12 19:29:57 +00:00
Makefile [clang-tidy] Create clang-tidy module modernize. Add pass-by-value check. 2015-08-14 13:17:11 +00:00
add_new_check.py [clang-tidy] add_new_check.py improvements: add doc file, refer it from .h 2015-09-10 13:56:39 +00:00