cppcheck/lib
Rikard Falkeborn 82a1e3c61c CheckInternal: Extend redundant null pointer check before Token::Match() (#1789)
Improve the internal check for redundant null pointer check before
calling Token::Match() (and friends). Now, warn about code snippets like

    if (a && tok && Token::Match(tok, "foo"))

Also, extend the check for the inverted case.

There is still no warning for

    if (tok && a && Token::Match(tok, "foo"))

since that would require checking if a is independent of tok.
2019-04-06 07:44:44 +02:00
..
CMakeLists.txt
analyzerinfo.cpp Buffer overflow: Add CTU checking for pointer arithmetic overflows 2019-04-03 06:43:56 +02:00
analyzerinfo.h
astutils.cpp Fixed slow checking in FwdAnalysis 2019-03-30 14:22:24 +01:00
astutils.h
check.cpp Updated copyright year 2018-10-13 18:20:31 +02:00
check.h
check64bit.cpp Rename _tokenizer, _settings, _errorLogger 2018-06-16 16:10:28 +02:00
check64bit.h
checkassert.cpp Update copyright year 2019-02-09 07:24:06 +01:00
checkassert.h
checkautovariables.cpp
checkautovariables.h
checkbool.cpp
checkbool.h
checkboost.cpp
checkboost.h
checkbufferoverrun.cpp Fix CheckInternal warnings (#1790) 2019-04-06 06:55:46 +02:00
checkbufferoverrun.h Buffer overflow: Add CTU checking for pointer arithmetic overflows 2019-04-03 06:43:56 +02:00
checkclass.cpp Fixed #8988 (False positive: using memset on struct) 2019-04-01 19:32:03 +02:00
checkclass.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
checkcondition.cpp
checkcondition.h
checkexceptionsafety.cpp
checkexceptionsafety.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
checkfunctions.cpp
checkfunctions.h
checkinternal.cpp CheckInternal: Extend redundant null pointer check before Token::Match() (#1789) 2019-04-06 07:44:44 +02:00
checkinternal.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
checkio.cpp
checkio.h
checkleakautovar.cpp
checkleakautovar.h
checkmemoryleak.cpp Fix CheckInternal warnings (#1790) 2019-04-06 06:55:46 +02:00
checkmemoryleak.h
checknullpointer.cpp CheckBufferOverrun: Add CTU analysis 2019-03-23 08:36:10 +01:00
checknullpointer.h
checkother.cpp Fix CheckInternal warnings (#1790) 2019-04-06 06:55:46 +02:00
checkother.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
checkpostfixoperator.cpp
checkpostfixoperator.h
checksizeof.cpp
checksizeof.h
checkstl.cpp STL: Better out of bounds checking for empty containers when index is unknown 2019-03-29 15:20:17 +01:00
checkstl.h Clarify STL out of bounds warning message 2019-03-29 11:13:25 +01:00
checkstring.cpp Checkstring fixes (#1783) 2019-04-06 06:54:38 +02:00
checkstring.h Checkstring fixes (#1783) 2019-04-06 06:54:38 +02:00
checktype.cpp
checktype.h
checkuninitvar.cpp CheckBufferOverrun: Add CTU analysis 2019-03-23 08:36:10 +01:00
checkuninitvar.h
checkunusedfunctions.cpp
checkunusedfunctions.h
checkunusedvar.cpp
checkunusedvar.h
checkvaarg.cpp Update copyright year 2019-02-09 07:24:06 +01:00
checkvaarg.h
config.h
cppcheck.cpp
cppcheck.h
cppcheck.natvis
cppcheck.vcxproj Add ctu sources to VS projects 2018-12-27 22:11:40 +01:00
cppcheck.vcxproj.filters
ctu.cpp CheckBufferOverrun: Better CTU checking when variable address is passed 2019-03-23 15:57:17 +01:00
ctu.h CheckBufferOverrun: Add CTU analysis 2019-03-23 08:36:10 +01:00
errorlogger.cpp
errorlogger.h Update copyright year 2019-02-09 07:24:06 +01:00
importproject.cpp astyle formatting 2019-03-27 18:15:12 +01:00
importproject.h
lib.pri
library.cpp library.cpp: optimized Library::detectContainer() (#1778) 2019-04-06 06:42:01 +02:00
library.h library.cpp: optimized Library::detectContainer() (#1778) 2019-04-06 06:42:01 +02:00
matchcompiler.h
mathlib.cpp
mathlib.h
path.cpp
path.h
pathmatch.cpp
pathmatch.h
pcrerules.pri
platform.cpp
platform.h
preprocessor.cpp
preprocessor.h
settings.cpp
settings.h
standards.h
suppressions.cpp
suppressions.h
symboldatabase.cpp debug warnings; report missing type for auto tokens 2019-03-31 17:38:00 +02:00
symboldatabase.h
templatesimplifier.cpp template simplifier: add minimal template template support (#1779) 2019-04-04 06:07:49 +02:00
templatesimplifier.h Fixed #9040 (Type alias 'BOOL' declared with 'using' keyword breaks type detection) (#1759) 2019-03-26 07:09:56 +01:00
timer.cpp Rename private member variables 2018-06-17 17:20:16 +02:00
timer.h Update copyright year 2019-02-09 07:24:06 +01:00
token.cpp
token.h
tokenize.cpp Fix CheckInternal warnings (#1790) 2019-04-06 06:55:46 +02:00
tokenize.h Fix wrong syntax error 2019-03-31 09:34:19 +02:00
tokenlist.cpp
tokenlist.h
utils.h Revert "Refactoring endsWith utility function" 2018-07-25 16:14:43 +02:00
valueflow.cpp Fix CheckInternal warnings (#1790) 2019-04-06 06:55:46 +02:00
valueflow.h
version.h
version.rc