cppcheck/lib
chrchr-github 6d2662b8a2
Fix #4400 FN (error) Memory leak - assignment to reference of a pointer (#5048)
* Fix #4400 false negative: (error) Memory leak - assignment to reference of a pointer

* Comment

* Run tests as C++

* Add TODOs

* Bail out for local references
2023-05-23 06:29:20 +02:00
..
CMakeLists.txt added CMake option `BUILD_CORE_DLL` to build lib as `cppcheck-core.dll` with Visual Studio (#4733) 2023-01-26 22:13:07 +01:00
analyzer.h
analyzerinfo.cpp
analyzerinfo.h
astutils.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
astutils.h Add non-const overloads for next(), previous(), and link() (#5002) 2023-05-02 06:55:31 +02:00
calculate.h Fix 11053: Integer division by zero in calculate.h (#4092) 2022-05-09 20:27:32 +02:00
check.cpp
check.h
check64bit.cpp
check64bit.h
checkassert.cpp
checkassert.h Update copyright year 2022-05-21 12:18:27 +02:00
checkautovariables.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
checkautovariables.h
checkbool.cpp
checkbool.h
checkboost.cpp Update copyright year 2022-02-05 11:45:17 +01:00
checkboost.h
checkbufferoverrun.cpp Fix #11708 internal error: converting '1f' to integer failed (#5066) 2023-05-18 23:26:56 +02:00
checkbufferoverrun.h
checkclass.cpp Use library to get deallocation function (#5061) 2023-05-21 14:01:14 +02:00
checkclass.h made some member functions static (#4966) 2023-04-28 12:29:40 +02:00
checkcondition.cpp Fix #11679 FP knownArgument with known return value (#5007) 2023-04-28 08:27:48 +02:00
checkcondition.h
checkexceptionsafety.cpp
checkexceptionsafety.h
checkfunctions.cpp Fix #11726 "this->" confuses non void return check (#5073) 2023-05-22 20:23:09 +02:00
checkfunctions.h
checkinternal.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
checkinternal.h Update copyright year 2023-01-28 10:16:34 +01:00
checkio.cpp cleaned up includes based on `include-what-you-use` (#5021) 2023-04-30 07:33:19 +02:00
checkio.h
checkleakautovar.cpp Fix #4400 FN (error) Memory leak - assignment to reference of a pointer (#5048) 2023-05-23 06:29:20 +02:00
checkleakautovar.h Fix #9279 Missing --check-library warning when memory leaks check assumes function is noreturn (#4937) 2023-04-06 18:44:03 +02:00
checkmemoryleak.cpp Fix #8433 FN unused variable not detected when there is lambda (#5060) 2023-05-22 07:39:57 +02:00
checkmemoryleak.h
checknullpointer.cpp
checknullpointer.h
checkother.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
checkother.h
checkpostfixoperator.cpp
checkpostfixoperator.h
checksizeof.cpp
checksizeof.h
checkstl.cpp Partial fix for #11131 FN variableScope with const member functions (#5027) 2023-05-03 10:02:16 +02:00
checkstl.h Update copyright year 2023-01-28 10:16:34 +01:00
checkstring.cpp
checkstring.h
checktype.cpp avoid some unnecessary code execution (#4962) 2023-04-28 12:42:51 +02:00
checktype.h
checkuninitvar.cpp Fix #10596 FN uninitdata with value initialization (#5056) 2023-05-13 22:07:09 +02:00
checkuninitvar.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
checkunusedfunctions.cpp Partial fix for #9602 False positives with function pointers (#5042) 2023-05-14 12:16:17 +02:00
checkunusedfunctions.h
checkunusedvar.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
checkunusedvar.h Fix #551 Detect unused Private member variables (#4973) 2023-04-17 20:34:39 +02:00
checkvaarg.cpp Update copyright year 2023-01-28 10:16:34 +01:00
checkvaarg.h
clangimport.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
clangimport.h
color.cpp
color.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
config.h
cppcheck.cpp Fixed #11715 (Add --showtime=file-total option to show checking time of each file) (#5049) 2023-05-11 14:04:22 +02:00
cppcheck.h moved more code into `HAVE_RULES` (#4956) 2023-05-04 10:54:19 +02:00
cppcheck.natvis
cppcheck.vcxproj
cppcheck.vcxproj.filters
ctu.cpp
ctu.h
errorlogger.cpp cleaned up includes based on `include-what-you-use` (#5021) 2023-04-30 07:33:19 +02:00
errorlogger.h
errortypes.cpp
errortypes.h
forwardanalyzer.cpp fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
forwardanalyzer.h
fwdanalysis.cpp
fwdanalysis.h
importproject.cpp Suppressions: some cleanups (#4980) 2023-05-04 18:15:18 +02:00
importproject.h
infer.cpp Fix 11669: Assert failure in infer.cpp (#4982) 2023-04-18 18:35:25 +02:00
infer.h fixed some `-Wdeprecated-copy-dtor` Clang compiler warnings (#4836) 2023-03-02 21:02:29 +01:00
keywords.cpp
keywords.h
lib.pri
library.cpp do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
library.h SingleExecutor: process markup files after code when scanning projects (#4972) 2023-05-03 17:32:28 +02:00
matchcompiler.h
mathlib.cpp do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
mathlib.h do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
path.cpp
path.h
pathanalysis.cpp made some member functions static (#4966) 2023-04-28 12:29:40 +02:00
pathanalysis.h made some member functions static (#4966) 2023-04-28 12:29:40 +02:00
pathmatch.cpp
pathmatch.h
pcrerules.pri
platform.cpp
platform.h
precompiled.h
preprocessor.cpp Suppressions: some cleanups (#4980) 2023-05-04 18:15:18 +02:00
preprocessor.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
programmemory.cpp Partial fix for #11131 FN variableScope with const member functions (#5027) 2023-05-03 10:02:16 +02:00
programmemory.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
reverseanalyzer.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
reverseanalyzer.h fixed some CLion inspection warnings (#4688) 2023-04-28 16:02:41 +02:00
settings.cpp Revert "ValueFlow: Set max iterations to 2 in normal analysis (#4951)" 2023-05-07 18:28:01 +02:00
settings.h moved more code into `HAVE_RULES` (#4956) 2023-05-04 10:54:19 +02:00
smallvector.h
sourcelocation.h Update copyright year 2023-01-28 10:16:34 +01:00
standards.h
summaries.cpp
summaries.h
suppressions.cpp Suppressions: some cleanups (#4980) 2023-05-04 18:15:18 +02:00
suppressions.h Suppressions: some cleanups (#4980) 2023-05-04 18:15:18 +02:00
symboldatabase.cpp Fix #8433 FN unused variable not detected when there is lambda (#5060) 2023-05-22 07:39:57 +02:00
symboldatabase.h Add non-const overloads for next(), previous(), and link() (#5002) 2023-05-02 06:55:31 +02:00
templatesimplifier.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
templatesimplifier.h Fix #11489 Crash in TemplateSimplifier (#5020) 2023-04-30 07:33:04 +02:00
timer.cpp Fixed #11715 (Add --showtime=file-total option to show checking time of each file) (#5049) 2023-05-11 14:04:22 +02:00
timer.h Fixed #11715 (Add --showtime=file-total option to show checking time of each file) (#5049) 2023-05-11 14:04:22 +02:00
token.cpp Fix autoNoType with multiple auto variables (#5012) 2023-04-30 20:36:27 +02:00
token.h Tokenizer: Add attribute for exported symbols (#5043) 2023-05-09 20:15:00 +02:00
tokenize.cpp [nit] Fixed lib/tokenize.cpp:2815:2: warning: extra ‘;’ [-Wpedantic] (#5071) 2023-05-23 06:27:25 +02:00
tokenize.h Tokenizer: Add attribute for exported symbols (#5043) 2023-05-09 20:15:00 +02:00
tokenlist.cpp Fix #11681 FN constParameterPointer with std::vector (#5000) 2023-05-04 11:10:58 +02:00
tokenlist.h
tokenrange.h
utils.cpp
utils.h do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
valueflow.cpp Fix FN constVariablePointer (#5076) 2023-05-22 19:53:51 +02:00
valueflow.h ValueFlow: Add pass runner to check timeout and report time (#4952) 2023-04-30 20:39:05 +02:00
valueptr.h
version.h
version.rc
vfvalue.cpp
vfvalue.h