cppcheck/lib
Rikard Falkeborn 007b5d3e8d Fix #9343 (memleak FP when return with cast) (#2162)
This was most likely introduced when the checks were changed to run on
the full tokenlist instead of the simplified one.

Take care to warn about cases where casts destroy the pointer, such as

	uint8_t f() {
		void* x = malloc(1);
		return (uint8_t)x;
	}
2019-09-20 15:09:27 +02:00
..
CMakeLists.txt CMake: Find header in externals, e.g. externals/picojson.h 2019-04-22 18:52:02 +02:00
analyzerinfo.cpp Update Copyright 2019-06-29 07:49:14 +02:00
analyzerinfo.h
astutils.cpp Fix issue 9352: FP constParameter and constVariable for auto& in combination with ternary ?: operator (#2173) 2019-09-13 08:33:30 +02:00
astutils.h Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
check.cpp Updated copyright year 2019-09-01 11:49:43 +02:00
check.h Safe checks: Clarify a warning message 2019-07-25 17:19:51 +02:00
check64bit.cpp
check64bit.h
checkassert.cpp
checkassert.h
checkautovariables.cpp Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
checkautovariables.h Track lifetime across multiple returns 2019-09-11 19:25:09 +02:00
checkbool.cpp Update Copyright 2019-06-29 07:49:14 +02:00
checkbool.h
checkboost.cpp
checkboost.h
checkbufferoverrun.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkbufferoverrun.h Fix Cppcheck warnings 2019-06-15 13:01:45 +02:00
checkclass.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkclass.h Renamed safeClassRefMember => unsafeClassRefMember 2019-08-13 20:58:31 +02:00
checkcondition.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkcondition.h Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkexceptionsafety.cpp
checkexceptionsafety.h
checkfunctions.cpp Replace 'unsigned' with 'nonneg' in checkfunctions 2019-07-16 08:49:02 +02:00
checkfunctions.h Replace 'unsigned' with 'nonneg' in checkfunctions 2019-07-16 08:49:02 +02:00
checkinternal.cpp
checkinternal.h
checkio.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkio.h replace 'unsigned' with 'nonneg' in checkio 2019-07-16 08:37:26 +02:00
checkleakautovar.cpp Fix #9343 (memleak FP when return with cast) (#2162) 2019-09-20 15:09:27 +02:00
checkleakautovar.h Replace 'unsigned' with 'nonneg' in checkleakautovar 2019-07-16 08:54:21 +02:00
checkmemoryleak.cpp leakNoReturnVar: Don't break early (#2095) 2019-08-23 06:33:00 +02:00
checkmemoryleak.h Memleak: Refactor check to separate function (#2079) 2019-08-13 13:00:59 +02:00
checknullpointer.cpp Improve diagnostics with null smart pointers (#1805) 2019-04-26 11:30:09 +02:00
checknullpointer.h
checkother.cpp Fixed a typo in lib/checkother.cpp. Corrected spelling errors found by codespell. (#2170) 2019-09-11 19:21:38 +02:00
checkother.h Created redundantInitialization id 2019-08-25 09:45:39 +02:00
checkpostfixoperator.cpp
checkpostfixoperator.h
checksizeof.cpp Update Copyright 2019-06-29 07:49:14 +02:00
checksizeof.h
checkstl.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkstl.h Fix issue 4845: alias to vector element invalid after vector is changed (#2113) 2019-09-02 06:58:09 +02:00
checkstring.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkstring.h
checktype.cpp Fix issue 9306: Adjust shiftTooManyBitsSigned for C++14 (#2127) 2019-08-31 07:40:57 +02:00
checktype.h Clarify signConversion warning message 2019-08-05 12:41:08 +02:00
checkuninitvar.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkuninitvar.h Fix issue 8785: ValueFlow: Track pointer alias 2019-09-03 17:16:15 +02:00
checkunusedfunctions.cpp Fixed #8580 (False positive: unused function (lambda)) 2019-04-27 17:17:51 +02:00
checkunusedfunctions.h
checkunusedvar.cpp Fixed #9234 (FP unreadVariable - assignment via iterator) 2019-08-04 10:21:16 +02:00
checkunusedvar.h
checkvaarg.cpp
checkvaarg.h
config.h sync (#1835) 2019-05-17 09:31:41 +02:00
cppcheck.cpp ExprEngine: Add new experimental path-sensitive data flow analysis. Initially used for 'verification' but could possibly later be used as a complement in the normal analysis. The code is work-in-progress and hacky! 2019-09-17 21:00:59 +02:00
cppcheck.h test/cli: execute addon 2019-04-14 15:00:03 +02:00
cppcheck.natvis
cppcheck.vcxproj Add exprengine.cpp to VisualStudio solution 2019-09-18 21:56:31 +02:00
cppcheck.vcxproj.filters Add exprengine.cpp to VisualStudio solution 2019-09-18 21:56:31 +02:00
ctu.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
ctu.h CTU: Add 'column' 2019-09-12 10:46:33 +02:00
errorlogger.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
errorlogger.h Fixed #9260 (--template=gcc does not work correctly with -j) 2019-08-18 16:33:32 +02:00
exprengine.cpp Try to make Travis happy 2019-09-20 07:04:58 +02:00
exprengine.h Windows testrunner: Add testexprengine.cpp (#2184) 2019-09-19 19:40:00 +02:00
importproject.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
importproject.h astyle formatting 2019-08-12 12:54:25 +02:00
lib.pri ExprEngine: Add new experimental path-sensitive data flow analysis. Initially used for 'verification' but could possibly later be used as a complement in the normal analysis. The code is work-in-progress and hacky! 2019-09-17 21:00:59 +02:00
library.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
library.h Use library to track container lifetimes 2019-08-15 21:14:54 +02:00
matchcompiler.h
mathlib.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
mathlib.h
path.cpp Fixed #error in self check when __CPPCHECK__ is defined 2019-04-30 20:31:46 +02:00
path.h
pathmatch.cpp
pathmatch.h
pcrerules.pri
platform.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
platform.h Updated copyright year 2019-09-01 11:49:43 +02:00
preprocessor.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
preprocessor.h
settings.cpp ExprEngine: Add new experimental path-sensitive data flow analysis. Initially used for 'verification' but could possibly later be used as a complement in the normal analysis. The code is work-in-progress and hacky! 2019-09-17 21:00:59 +02:00
settings.h use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
standards.h Update Copyright 2019-06-29 07:49:14 +02:00
suppressions.cpp Fix Cppcheck warning: Suppressions::dump can be const 2019-06-29 07:53:32 +02:00
suppressions.h Fix Cppcheck warning: Suppressions::dump can be const 2019-06-29 07:53:32 +02:00
symboldatabase.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
symboldatabase.h use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
templatesimplifier.cpp Fixed #9046 syntaxError (#2180) 2019-09-20 12:35:01 +02:00
templatesimplifier.h template simplifier: ignore friend templates (#2122) 2019-09-01 09:56:33 +02:00
timer.cpp Updated copyright year 2019-09-01 11:49:43 +02:00
timer.h Convert SHOWTIME_MODES to enum class 2019-07-31 22:35:51 +02:00
token.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
token.h Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
tokenize.cpp Fixed #9046 syntaxError (#2180) 2019-09-20 12:35:01 +02:00
tokenize.h Calculate token scopes in advance rather than as the tokenlist is iterated (#2038) 2019-07-31 09:19:27 +02:00
tokenlist.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
tokenlist.h template simplifier: fix new daca crashes (#2093) 2019-08-17 07:38:07 +02:00
utils.h Updated copyright year 2019-09-01 11:49:43 +02:00
valueflow.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
valueflow.h astyle formatting 2019-09-20 15:07:27 +02:00
version.h Set version to 1.89.99/1.90 dev 2019-09-02 15:44:40 +02:00
version.rc