cppcheck/lib
Paul Fultz II fbba72ab5a
Fix 11057: FP danglingTemporaryLifetime with reference member (#4103)
* Fix 11057: FP danglingTemporaryLifetime with reference member

* Add test

* Format

* Use ast for number of arguments

* Get number of arguments using ast

* Skip aggregate constructor when there are too many arguments

* Format
2022-05-13 06:51:07 +02:00
..
CMakeLists.txt Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +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 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
astutils.h Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
calculate.h Fix 11053: Integer division by zero in calculate.h (#4092) 2022-05-09 20:27:32 +02:00
check.cpp Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02: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 cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
checkautovariables.h removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
checkbool.cpp Fix #7197 not getting expected warning in relational comparison of booleans (#4095) 2022-05-11 08:09:32 +02: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 #9861 FN: "static" not suggested for non-const method (#4101) 2022-05-11 20:01:22 +02:00
checkclass.h cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
checkcondition.cpp Fix #11059 FP multiCondition when variable is assigned in if/else (#4102) 2022-05-11 20:01:13 +02: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 #11014 FN redundantPointerOp / remove simplifyMulAndParens() (#4062) 2022-05-01 15:46:07 +02:00
checkleakautovar.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checkmemoryleak.cpp Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
checkmemoryleak.h small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
checknullpointer.cpp Fix #11007 FP nullPointerRedundantCheck with static function pointer (#4051) 2022-04-26 17:25:56 +02: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 #10569 FN: duplicateExpression with multiple strings compared (#4087) 2022-05-09 21:05:35 +02:00
checkother.h Fix #10569 FN: duplicateExpression with multiple strings compared (#4087) 2022-05-09 21:05:35 +02: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 Fix #9648 FP sizeofDivisionMemfunc (#4017) 2022-04-13 18:21:56 +02: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 11028: False positive: invalidContainer (#4083) 2022-05-05 06:54:36 +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 Rename old uninitvar ID to use legacyUninitvar (#4043) 2022-04-27 17:37:37 +02:00
checkuninitvar.h Rename old uninitvar ID to use legacyUninitvar (#4043) 2022-04-27 17:37:37 +02: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 cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +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 added support for Qt6 (#3930) 2022-04-15 18:49:24 +02:00
cppcheck.cpp Don't add suppressed errors to plist output (#4038) 2022-04-26 17:39:39 +02:00
cppcheck.h Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
cppcheck.natvis
cppcheck.vcxproj aligned build options of Visual Studio project configurations and added them to CMake (#4020) 2022-04-21 21:28:29 +02:00
cppcheck.vcxproj.filters Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
ctu.cpp small utils.h cleanup (#3821) 2022-02-11 19:44:08 +01:00
ctu.h Fix #9391 False negative: Uninitialized struct member (default constructor) (#4088) 2022-05-09 20:28:21 +02:00
errorlogger.cpp Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
errorlogger.h Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02: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
forwardanalyzer.cpp ValueFlow: Set values to parameters to longjmp and setjmp (#4040) 2022-04-23 06:18:55 +02:00
forwardanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
importproject.cpp added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
importproject.h Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02: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 Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
library.cpp Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
library.h cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +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 fixed some clang-tidy warnings (#3080) 2022-05-08 20:42:06 +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 added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02: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 added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
preprocessor.h Update copyright year 2022-02-05 11:45:17 +01:00
programmemory.cpp Fix 11056: FP uninitvar with known condition in loop (#4107) 2022-05-12 06:37:48 +02:00
programmemory.h cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
reverseanalyzer.cpp Fix #9861 FN: "static" not suggested for non-const method (#4101) 2022-05-11 20:01:22 +02:00
reverseanalyzer.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
settings.cpp Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
settings.h cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
smallvector.h smallvector.h: reverted bogus noExplicitConstructor fix and suppress the warning (#4016) 2022-04-13 20:50:04 +02:00
standards.h added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02: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 cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
suppressions.h Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
symboldatabase.cpp Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
symboldatabase.h Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
templatesimplifier.cpp Fix #10494 Same template name confuses check (#4011) 2022-04-13 12:25:21 +02: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 Add test for #9838 / Remove noisy assert (#4059) 2022-04-28 15:24:54 +02:00
token.h Fix 11006: FP uninitvar with unknown constant (#4056) 2022-04-28 10:48:37 +02:00
tokenize.cpp Tokenizer: fix for __attribute__ before function that returns a reference 2022-05-10 20:59:24 +02:00
tokenize.h Fix #9861 FN: "static" not suggested for non-const method (#4101) 2022-05-11 20:01:22 +02:00
tokenlist.cpp AST: Fix AST for array size calculation in cast (char (*)[...]) 2022-05-10 22:47:57 +02:00
tokenlist.h fixed some clang-tidy warnings (#3080) 2022-05-08 20:42:06 +02:00
tokenrange.h Format with uncrustify (#3388) 2021-08-07 20:51:18 +02:00
utils.cpp added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
utils.h added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
valueflow.cpp Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
valueflow.h Fix 11009: FP uninitvar (#4076) 2022-05-04 05:59:01 +02: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