llvm-project/clang-tools-extra/clang-tidy/misc
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
..
ArgumentCommentCheck.cpp [clang-tidy] Refactor: Move misc clang-tidy checks to namespace clang::tidy::misc 2015-03-02 12:25:03 +00:00
ArgumentCommentCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
AssertSideEffectCheck.cpp [clang-tidy] misc-assert-side-effect: support assert macros defined through other macros 2015-08-31 14:47:14 +00:00
AssertSideEffectCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
AssignOperatorSignatureCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 14:23:21 +00:00
AssignOperatorSignatureCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
BoolPointerImplicitConversionCheck.cpp [clang-tidy] Move user-defined matches to unnamed namespaces to prevent ODR violations. 2015-06-17 13:11:37 +00:00
BoolPointerImplicitConversionCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
CMakeLists.txt [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl 2015-09-10 16:37:46 +00:00
InaccurateEraseCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
InaccurateEraseCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
InefficientAlgorithmCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
InefficientAlgorithmCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
MacroParenthesesCheck.cpp [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
MacroParenthesesCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
MacroRepeatedSideEffectsCheck.cpp [clang-tidy] Enhance clang-tidy misc-macro-repeated-side-effects... 2015-07-02 07:49:55 +00:00
MacroRepeatedSideEffectsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
Makefile
MiscTidyModule.cpp [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl 2015-09-10 16:37:46 +00:00
MoveConstructorInitCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
MoveConstructorInitCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
NoexceptMoveConstructorCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
NoexceptMoveConstructorCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
SizeofContainerCheck.cpp [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl 2015-09-10 16:37:46 +00:00
SizeofContainerCheck.h [clang-tidy] Add misc-sizeof-container check to find sizeof() uses on stl 2015-09-10 16:37:46 +00:00
StaticAssertCheck.cpp Allow the static assert clang-tidy checker to run over C code. 2015-08-31 21:54:42 +00:00
StaticAssertCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
SwappedArgumentsCheck.cpp [clang-tidy] Refactor: Move misc clang-tidy checks to namespace clang::tidy::misc 2015-03-02 12:25:03 +00:00
SwappedArgumentsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UndelegatedConstructor.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
UndelegatedConstructor.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UniqueptrResetReleaseCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
UniqueptrResetReleaseCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UnusedAliasDeclsCheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
UnusedAliasDeclsCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UnusedParametersCheck.cpp misc-unused-parameters: Fix crasher with C forward declarations that 2015-08-14 13:39:57 +00:00
UnusedParametersCheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00
UnusedRAIICheck.cpp Using an early return as it is more clear; NFC. 2015-08-31 15:28:57 +00:00
UnusedRAIICheck.h [clang-tidy] Update docs for clang-tidy checks. NFC 2015-08-27 18:01:58 +00:00