cppcheck/lib
Paul Fultz II 8b8ae55490
Fix 10129: false negative: knownConditionTrueFalse (#3382)
* Add symbolic matching

* Check for truncated values

* Dont propagate uninit values

* Update errorpath test

* Add test case for 10129

* Add test case for FP

* Remove symbolic values that are the same as the token

* Fix test messages

* Fix cppcheck issue

* Format
2021-08-04 21:07:31 +02:00
..
CMakeLists.txt lib: Add condition for include externals/tinyxml2 (#2923) 2020-11-27 09:57:12 +01:00
analyzer.h Fix 10129: false negative: knownConditionTrueFalse (#3382) 2021-08-04 21:07:31 +02:00
analyzerinfo.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
analyzerinfo.h Update Copyright year 2021-03-21 20:58:32 +01:00
astutils.cpp Fix 10129: false negative: knownConditionTrueFalse (#3382) 2021-08-04 21:07:31 +02:00
astutils.h Refactor: Remove variable analyzer (#3339) 2021-07-18 07:46:31 +02:00
bughuntingchecks.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
bughuntingchecks.h Add 'bughuntingchecks' 2020-06-19 13:16:48 +02:00
check.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check.h Update Copyright year 2021-03-21 20:58:32 +01:00
check64bit.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
check64bit.h
checkassert.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
checkassert.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
checkautovariables.cpp Fix todo test for returning a dangling reference (#3284) 2021-06-04 17:15:39 +02:00
checkautovariables.h Fixed #9918 (False positive: autoVariable pointer is NULLed later) 2020-09-28 22:48:57 +02:00
checkbool.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkbool.h Update Copyright year 2020-10-03 09:15:56 +02:00
checkboost.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkboost.h
checkbufferoverrun.cpp buffer overrun; Fixed false negative for dynamically allocated float buffer 2021-05-22 15:39:20 +02:00
checkbufferoverrun.h #10244: Fixed false negative: bufferAccessOutOfBounds 2021-04-13 16:40:38 +02:00
checkclass.cpp virtual call in constructor; warn when function is explicitly virtual 2021-07-11 11:03:31 +02:00
checkclass.h virtual call in constructor; warn when function is explicitly virtual 2021-07-11 11:03:31 +02:00
checkcondition.cpp Refactor: Remove variable analyzer (#3339) 2021-07-18 07:46:31 +02:00
checkcondition.h misra; implement rule 14.3 2021-07-15 09:43:38 +02:00
checkexceptionsafety.cpp Typos found by running "codespell" (#3324) 2021-07-02 17:41:51 +02:00
checkexceptionsafety.h Moving error reporting functions from header to cpp (#3279) 2021-06-02 07:00:10 +02:00
checkfunctions.cpp CI; Fix self check false positive 2021-07-18 20:00:20 +02:00
checkfunctions.h missing return; write inconclusive error if function ends with unknown function-like macro 2021-07-18 16:00:42 +02:00
checkinternal.cpp fixed some modernize-loop-convert clang-tidy warnings (#2815) 2020-09-21 19:30:47 +02:00
checkinternal.h Update Copyright year 2021-03-21 20:58:32 +01:00
checkio.cpp new check; file can not be opened for read and write access at the same time on different streams (misra rule 22.3) 2021-07-10 13:59:47 +02:00
checkio.h new check; file can not be opened for read and write access at the same time on different streams (misra rule 22.3) 2021-07-10 13:59:47 +02:00
checkleakautovar.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
checkleakautovar.h Update Copyright year 2021-03-21 20:58:32 +01:00
checkmemoryleak.cpp Fix FP leakNoVarFunctionCall with passthrough returns (#3249) 2021-05-08 10:26:10 +02:00
checkmemoryleak.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
checknullpointer.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checknullpointer.h Update copyright year 2020-06-13 16:37:12 +02:00
checkother.cpp Fix FP const pointer with class variable and add more tests (#3345) 2021-07-21 07:36:13 +02:00
checkother.h const variables/parameters; Improved check to handle pointers also (misra 8.13) 2021-07-18 10:59:52 +02:00
checkpostfixoperator.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkpostfixoperator.h
checksizeof.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checksizeof.h
checkstl.cpp Revert "Remove unnecessary null check (#3213)" 2021-05-01 18:54:51 +02:00
checkstl.h Improve check: check for known empty containers passed to algorithms (#2768) 2020-09-02 07:11:23 +02:00
checkstring.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkstring.h Checkstring fixes (#1783) 2019-04-06 06:54:38 +02:00
checktype.cpp Running astyle [ci skip] 2021-06-05 08:53:15 +02:00
checktype.h Removed integerOverflowOptimization checking and merged functionality into invalidTestForOverflow 2021-01-05 11:38:19 +01:00
checkuninitvar.cpp Fixed #10327 (ValueFlow; Wrong Uninit value in called function) 2021-07-01 22:08:00 +02:00
checkuninitvar.h Fixed #10327 (ValueFlow; Wrong Uninit value in called function) 2021-07-01 22:08:00 +02:00
checkunusedfunctions.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
checkunusedfunctions.h Silence unused variable warning (#2223) 2019-09-27 08:19:45 +02:00
checkunusedvar.cpp Fix CI; Cppcheck find some more unusedAllocatedMemory violations in test/cfg/.. 2021-05-13 23:08:58 +02:00
checkunusedvar.h astyle formatting 2020-11-28 05:52:35 +01:00
checkvaarg.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
checkvaarg.h added missing OVERRIDE usage and removed redundant virtual (#2190) 2019-09-20 21:57:16 +02:00
clangimport.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
clangimport.h Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
color.cpp Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h Try to solve self check warning to make CI happy 2021-07-11 11:37:41 +02:00
cppcheck.cpp lib: Fix clang -Wrange-loop-construct warning (#3347) 2021-07-22 18:53:44 +02:00
cppcheck.h Add colors to CLI reporting (#3304) 2021-07-08 21:21:35 +02:00
cppcheck.natvis
cppcheck.vcxproj Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
cppcheck.vcxproj.filters Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
ctu.cpp Fix compiler error 2021-05-01 18:57:10 +02:00
ctu.h Update Copyright year 2021-03-21 20:58:32 +01:00
errorlogger.cpp Add colors to CLI reporting (#3304) 2021-07-08 21:21:35 +02:00
errorlogger.h Add colors to CLI reporting (#3304) 2021-07-08 21:21:35 +02:00
errortypes.cpp astyle formatting 2020-05-23 07:30:22 +02:00
errortypes.h Update Copyright year 2021-03-21 20:58:32 +01:00
exprengine.cpp Try to solve self check warning to make CI happy 2021-07-11 11:37:41 +02:00
exprengine.h cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
forwardanalyzer.cpp Fix 10362: ValueFlow: global variable might be modified by function call (#3358) 2021-07-26 22:21:56 +02:00
forwardanalyzer.h updated copyright year 2021-07-04 08:09:11 +02:00
importproject.cpp CI; Fixed problems in windows paths 2021-06-12 12:45:31 +02:00
importproject.h ImportProject; Try to use relative paths 2021-06-12 11:10:35 +02:00
lib.pri Add colors to CLI reporting (#3304) 2021-07-08 21:21:35 +02:00
library.cpp astyle formatting 2021-07-21 20:13:38 +02:00
library.h Find reference to dangling unique ptr (#3344) 2021-07-20 21:30:27 +02:00
matchcompiler.h
mathlib.cpp Fixed #10196 ("Unhandled char constant 'x'" with non-standard escape character) 2021-05-08 12:54:18 +02:00
mathlib.h Refactoring; Reuse simplecpp::characterLiteralToLL 2021-05-02 13:44:37 +02:00
path.cpp updated copyright year 2021-07-04 08:09:11 +02:00
path.h Update Copyright year 2021-03-21 20:58:32 +01:00
pathanalysis.cpp Refactorization: Moved code from header to source 2020-05-19 08:35:12 +02:00
pathanalysis.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
pathmatch.cpp Update Copyright year 2020-10-03 09:15:56 +02:00
pathmatch.h
pcrerules.pri
platform.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
platform.h Update copyright year 2020-05-10 11:16:32 +02:00
precompiled.h Visual Studio: Use new files precompiled.h with several common includes for core and testrunner. 2020-05-29 12:16:04 +02:00
preprocessor.cpp misra; implemented rule 20.8 2021-07-22 08:46:28 +02:00
preprocessor.h misra; implemented rule 20.8 2021-07-22 08:46:28 +02:00
programmemory.cpp astyle formatting 2021-08-01 14:05:30 +02:00
programmemory.h Fix issue 10378: FP derefInvalidIteratorRedundantCheck (#3353) 2021-07-24 22:44:18 +02:00
reverseanalyzer.cpp Refactor: Assert an expression has an id and fix assertion failures (#3377) 2021-08-03 06:31:52 +02:00
reverseanalyzer.h Update Copyright year 2021-03-21 20:58:32 +01:00
settings.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
settings.h Clarify Settings::buildDir 2021-07-06 12:18:03 +02:00
standards.h Update Copyright year 2020-10-03 09:15:56 +02:00
summaries.cpp Summaries: Moved to its own files 2020-12-20 19:53:58 +01:00
summaries.h Update Copyright year 2021-03-21 20:58:32 +01:00
suppressions.cpp Fix CodeQL warning, Multiplication result converted to larger type 2020-11-06 19:50:05 +01:00
suppressions.h Update Copyright year 2021-03-21 20:58:32 +01:00
symboldatabase.cpp SymbolDatabase; First fix to handle when a namespace have many scopes 2021-08-04 20:36:43 +02:00
symboldatabase.h Remove constexpr -> const simplification (#3346) 2021-07-22 07:22:26 +02:00
templatesimplifier.cpp fix #10332 (cppcheck crashes) (#3371) 2021-08-01 10:31:36 +02:00
templatesimplifier.h improved compiler warnings about missing attributes (#3232) 2021-04-25 12:52:09 +02:00
timer.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
timer.h Check for JSON error when parsing addon .json files + fixes (#2374) 2019-11-20 15:37:09 +01:00
token.cpp Add symbolic values to ValueFlow (#3367) 2021-07-30 21:29:35 +02:00
token.h Fix issue 10378: FP derefInvalidIteratorRedundantCheck (#3353) 2021-07-24 22:44:18 +02:00
tokenize.cpp Remove constexpr -> const simplification (#3346) 2021-07-22 07:22:26 +02:00
tokenize.h misra; implement rule 2.3 2021-07-07 15:16:53 +02:00
tokenlist.cpp Remove constexpr -> const simplification (#3346) 2021-07-22 07:22:26 +02:00
tokenlist.h Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
tokenrange.h updated copyright year 2021-07-04 08:09:11 +02:00
utils.cpp updated copyright year 2021-07-04 08:09:11 +02:00
utils.h cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
valueflow.cpp Fix 10129: false negative: knownConditionTrueFalse (#3382) 2021-08-04 21:07:31 +02:00
valueflow.h astyle formatting 2021-08-01 14:05:30 +02:00
valueptr.h Update copyright year 2020-05-10 11:16:32 +02:00
version.h Set debug version 2021-07-04 11:19:08 +02:00
version.rc