cppcheck/lib
Rikard Falkeborn df800e35d4 Fix memleak FP with return with parenthesis (#2202)
* Fix memleak FP with return  with parenthesis

Fix FPs pointed out by daca@home on the following form:

    void* f(void) {
        void* x = malloc(1);
        return(x);
    }

Fix it by only skipping tokens if there is an actual match with a
variable. This allows to remove the special casing of "return;".

* Add testcase with cast
2019-09-22 19:18:31 +02:00
..
CMakeLists.txt
analyzerinfo.cpp
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
check.h deleted methods should be public (#2193) 2019-09-20 21:58:09 +02:00
check64bit.cpp Rename _tokenizer, _settings, _errorLogger 2018-06-16 16:10:28 +02:00
check64bit.h
checkassert.cpp
checkassert.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
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 Fix false negatives in checkAssignBoolToFloat and minor related improvements (#2198) 2019-09-21 08:24:54 +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
checkclass.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkclass.h
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 Refactoring; Use range for loops 2018-07-14 09:49:03 +02:00
checkexceptionsafety.h
checkfunctions.cpp
checkfunctions.h
checkinternal.cpp
checkinternal.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
checkio.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkio.h
checkleakautovar.cpp Fix memleak FP with return with parenthesis (#2202) 2019-09-22 19:18:31 +02:00
checkleakautovar.h
checkmemoryleak.cpp
checkmemoryleak.h
checknullpointer.cpp
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
checksizeof.h
checkstl.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkstl.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
checkstring.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
checkstring.h
checktype.cpp
checktype.h
checkuninitvar.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
checkuninitvar.h
checkunusedfunctions.cpp
checkunusedfunctions.h do not access static methods through instance (#2189) 2019-09-20 21:54:30 +02:00
checkunusedvar.cpp
checkunusedvar.h
checkvaarg.cpp
checkvaarg.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
config.h
cppcheck.cpp do not access static methods through instance (#2189) 2019-09-20 21:54:30 +02:00
cppcheck.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +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
exprengine.cpp ExprEngine: Guess function call return value 2019-09-22 16:40:48 +02:00
exprengine.h ExprEngine: Better handling of pointers 2019-09-22 10:56:57 +02:00
importproject.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
importproject.h
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
matchcompiler.h
mathlib.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
mathlib.h Update copyright year 2019-02-09 07:24:06 +01:00
path.cpp
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
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
suppressions.cpp
suppressions.h
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
timer.cpp
timer.h
token.cpp Add impossible values to ValueFlow (#2186) 2019-09-20 15:06:37 +02:00
token.h do not access static methods through instance (#2189) 2019-09-20 21:54:30 +02:00
tokenize.cpp do not access static methods through instance (#2189) 2019-09-20 21:54:30 +02:00
tokenize.h deleted methods should be public (#2193) 2019-09-20 21:58:09 +02:00
tokenlist.cpp use range loops / constness (#2181) 2019-09-19 20:29:33 +02:00
tokenlist.h
utils.h
valueflow.cpp Fix issue 9362: FP: (style) Condition '(v&1)==0' is always false (#2200) 2019-09-21 19:53:54 +02:00
valueflow.h astyle formatting 2019-09-20 15:07:27 +02:00
version.h
version.rc