cppcheck/lib
Tyson Nottingham d6a70d27c7 Fix false negatives in checkAssignBoolToFloat and minor related improvements (#2198)
* Fix false negatives in checkAssignBoolToFloat

Detect assignments to expressions involving pointer dereferences, array
element accesses, etc.

* Pass assignment token to assignBoolToFloatError

Pass assignment token rather than boolean token to make error reporting
consistent between checkAssignBoolToFloat and checkAssignBoolToPointer,
as well as with other assignment checks in the code base.

* Make checkAssignBoolToPointer check consistent with checkAssignBoolToFloat
2019-09-21 08:24:54 +02:00
..
CMakeLists.txt
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 deleted methods should be public (#2193) 2019-09-20 21:58:09 +02:00
check64bit.cpp
check64bit.h Disable all simplified checks 2019-03-16 09:17:50 +01:00
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 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 do not access static methods through instance (#2189) 2019-09-20 21:54:30 +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
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 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 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
checkunusedfunctions.h do not access static methods through instance (#2189) 2019-09-20 21:54:30 +02:00
checkunusedvar.cpp Fixed #9234 (FP unreadVariable - assignment via iterator) 2019-08-04 10:21:16 +02:00
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 Fixed #9260 (--template=gcc does not work correctly with -j) 2019-08-18 16:33:32 +02:00
exprengine.cpp ExprEngine: Better handling of conditions 2019-09-20 21:27:51 +02:00
exprengine.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +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
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 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 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 Fix issue 9361: false positive: (style) Condition 'isdigit(c)!=0' is always true (#2199) 2019-09-21 08:19:54 +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