cppcheck/lib
Paul Fultz II 74667d1e2a
Fix 10418: false negative: knownConditionTrueFalse (#3981)
* Improve handling inverted condition

* Fix tests

* Rename variables for clarity

* Add initial test

* Add another test

* Format

* Fix FP
2022-04-07 06:48:13 +02:00
..
CMakeLists.txt Fix warnings in switch statements on clang (#3943) 2022-03-30 19:30:02 +02:00
analyzer.h Update copyright year 2022-02-05 11:45:17 +01:00
analyzerinfo.cpp Update copyright year 2022-02-05 11:45:17 +01:00
analyzerinfo.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
astutils.cpp Fix 10867: false negative: containerOutOfBounds with std::array (regression) (#3976) 2022-04-06 06:25:28 +02:00
astutils.h Fix #10928, #10930 FP constStatement (#3946) 2022-03-27 07:59:29 +02:00
bughuntingchecks.cpp fixed and enabled performance-for-range-copy clang-tidy warning (#3682) 2022-02-12 08:20:45 +01:00
bughuntingchecks.h Update copyright year 2022-02-05 11:45:17 +01:00
calculate.h Fix warnings in switch statements on clang (#3943) 2022-03-30 19:30:02 +02:00
check.cpp Update copyright year 2022-02-05 11:45:17 +01:00
check.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
check64bit.cpp Update copyright year 2022-02-05 11:45:17 +01:00
check64bit.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkassert.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkassert.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkautovariables.cpp Refactor: Use getEndOfExprScope instead of getEndOfVarScope (#3855) 2022-02-24 06:50:34 +01:00
checkautovariables.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkbool.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkbool.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkboost.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkboost.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkbufferoverrun.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkbufferoverrun.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkclass.cpp Fix crash with defaulted destructor (#3975) 2022-04-05 23:18:08 +02:00
checkclass.h Fix #8496 Clarify warnings for uninitMemberVar (#3760) 2022-03-13 17:33:31 +01:00
checkcondition.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkcondition.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkexceptionsafety.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkexceptionsafety.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkfunctions.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkfunctions.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkinternal.cpp Update copyright year 2021-09-26 11:34:56 +02:00
checkinternal.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkio.cpp Fix #7908 FN: redundant assignment in loop (#3650) 2022-02-22 09:51:44 +01:00
checkio.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkleakautovar.cpp Fix #10502 FP doubleFree (#3921) 2022-03-21 22:17:50 +01:00
checkleakautovar.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkmemoryleak.cpp #8126 Fix previous commit (#3833) 2022-02-15 20:03:02 +01:00
checkmemoryleak.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checknullpointer.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checknullpointer.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkother.cpp Fix FP constStatement with comma operator (#3978) 2022-04-06 16:58:17 +02:00
checkother.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkpostfixoperator.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkpostfixoperator.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checksizeof.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checksizeof.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkstl.cpp Fix 10895: FP danglingTempReference with emplace() (#3948) 2022-03-27 10:02:30 +02:00
checkstl.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkstring.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkstring.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checktype.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checktype.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkuninitvar.cpp valueFlowUninit: Handle arrays and pod types (#3917) 2022-03-24 06:35:44 +01:00
checkuninitvar.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkunusedfunctions.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
checkunusedfunctions.h enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
checkunusedvar.cpp Fix warnings in switch statements on clang (#3943) 2022-03-30 19:30:02 +02:00
checkunusedvar.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkvaarg.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkvaarg.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
clangimport.cpp fixed and enabled performance-for-range-copy clang-tidy warning (#3682) 2022-02-12 08:20:45 +01:00
clangimport.h Update copyright year 2022-02-05 11:45:17 +01:00
color.cpp Update copyright year 2022-02-05 11:45:17 +01:00
color.h Fix MSVC build and some warnings (#3334) 2021-07-16 21:55:12 +02:00
config.h Fix warnings in switch statements on clang (#3943) 2022-03-30 19:30:02 +02:00
cppcheck.cpp Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
cppcheck.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
cppcheck.natvis Fixed Visual Studio Natvis file after recent refactoring (#1299) 2018-07-09 08:27:26 +02:00
cppcheck.vcxproj MSVC: add missing files to project (#3500) 2021-10-11 19:01:49 +02:00
cppcheck.vcxproj.filters Fix MSVC build (#3671) 2022-01-04 15:38:37 +01:00
ctu.cpp small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
ctu.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
errorlogger.cpp Restore symbol names from cache 2022-02-21 18:19:05 +01:00
errorlogger.h Update copyright year 2022-02-05 11:45:17 +01:00
errortypes.cpp Update copyright year 2022-02-05 11:45:17 +01:00
errortypes.h Update copyright year 2022-02-05 11:45:17 +01:00
exprengine.cpp Fix #10391 bug hunting; crash for small C-code (#3846) 2022-02-21 18:09:46 +01:00
exprengine.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
forwardanalyzer.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp compile_commands.json: ensure that order of include paths are kept 2022-03-24 22:50:04 +01:00
importproject.h enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
infer.cpp Update copyright year 2022-02-05 11:45:17 +01:00
infer.h Update copyright year 2022-02-05 11:45:17 +01:00
lib.pri Refactor: Use interval analysis for symbolic values for inferCondtion (#3488) 2021-10-09 16:19:06 +02:00
library.cpp Fix 6624: false negative: std::vector out of bounds access not detected (#3980) 2022-04-07 06:47:15 +02:00
library.h Fix 6624: false negative: std::vector out of bounds access not detected (#3980) 2022-04-07 06:47:15 +02:00
matchcompiler.h Update copyright year 2021-09-26 11:34:56 +02:00
mathlib.cpp Update copyright year 2022-02-05 11:45:17 +01:00
mathlib.h Update copyright year 2022-02-05 11:45:17 +01:00
path.cpp feat: add support for .ipp and .ixx extensions (#3383) 2021-08-09 10:46:56 +02:00
path.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
pathanalysis.cpp Update copyright year 2022-02-05 11:45:17 +01:00
pathanalysis.h enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
pathmatch.cpp Update copyright year 2022-02-05 11:45:17 +01:00
pathmatch.h Update copyright year 2022-02-05 11:45:17 +01:00
pcrerules.pri
platform.cpp small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
platform.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
precompiled.h Update copyright year 2022-02-05 11:45:17 +01:00
preprocessor.cpp Update copyright year 2022-02-05 11:45:17 +01:00
preprocessor.h Update copyright year 2022-02-05 11:45:17 +01:00
programmemory.cpp Fix 10449: Regression: knownConditionTrueFalse (strlen/wcslen) (#3977) 2022-04-06 06:35:38 +02:00
programmemory.h Fix 10449: Regression: knownConditionTrueFalse (strlen/wcslen) (#3977) 2022-04-06 06:35:38 +02:00
reverseanalyzer.cpp Update copyright year 2022-02-05 11:45:17 +01:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp cppcheck.cfg: support custom productname and about message 2022-03-24 22:44:47 +01:00
settings.h cppcheck.cfg: support custom productname and about message 2022-03-24 22:44:47 +01:00
smallvector.h fixed build with SmallVector (noExplicitConstructor warning and incorrect C++ standard for Visual Studio `*-PCRE` configuration) (#3937) 2022-03-28 21:40:44 +02:00
standards.h Update copyright year 2022-02-05 11:45:17 +01:00
summaries.cpp removed unnecessary varid0 inline suppressions (#3893) 2022-03-12 18:02:40 +01:00
summaries.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
suppressions.cpp Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
suppressions.h Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
symboldatabase.cpp Fix 6624: false negative: std::vector out of bounds access not detected (#3980) 2022-04-07 06:47:15 +02:00
symboldatabase.h valueFlowUninit: Handle arrays and pod types (#3917) 2022-03-24 06:35:44 +01:00
templatesimplifier.cpp Fix #7908 FN: redundant assignment in loop (#3650) 2022-02-22 09:51:44 +01:00
templatesimplifier.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.cpp Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
timer.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
token.cpp Typos found by running "codespell" (#3907) 2022-03-16 15:28:44 +01:00
token.h misra: fix void parameter check 2022-04-01 21:34:47 +02:00
tokenize.cpp Fix #10260 debug: Executable scope 'x' with unknown function. (#3974) 2022-04-05 15:52:16 +02:00
tokenize.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
tokenlist.cpp Fix #10793 internalAstError with brace-init in ternary (#3966) 2022-04-03 20:05:03 +02:00
tokenlist.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
tokenrange.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
utils.cpp Update copyright year 2022-02-05 11:45:17 +01:00
utils.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
valueflow.cpp Fix 10418: false negative: knownConditionTrueFalse (#3981) 2022-04-07 06:48:13 +02:00
valueflow.h Fix 10851: False positive: known variable value below for loop (#3891) 2022-03-12 06:15:35 +01:00
valueptr.h Update copyright year 2021-09-26 11:34:56 +02:00
version.h 2.7: Set versions 2022-02-05 12:17:54 +01:00
version.rc