cppcheck/test
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
..
bug-hunting
cfg std.cfg: Attempt to fix failing CI 2022-05-10 23:09:10 +02:00
cli Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
synthetic
testsuites
CMakeLists.txt Use default template in the cfg tests (#4039) 2022-04-23 06:18:44 +02:00
options.cpp
options.h
precompiled.h
redirect.h
test.cxx
test64bit.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testassert.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testastutils.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testautovariables.cpp Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
testbool.cpp Added a regression test for #4103 - Comparing Boolean variables (> or <) 2022-05-11 11:30:02 +02:00
testboost.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testbufferoverrun.cpp Fix 11035: FP arrayIndexOutOfBoundsCond with array and vector (#4105) 2022-05-12 06:21:33 +02:00
testcharvar.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testclangimport.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testclass.cpp Fix #9861 FN: "static" not suggested for non-const method (#4101) 2022-05-11 20:01:22 +02:00
testcmdlineparser.cpp added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
testcondition.cpp Fix #11059 FP multiCondition when variable is assigned in if/else (#4102) 2022-05-11 20:01:13 +02:00
testconstructors.cpp Fix FP uninitMemberVar with defaulted special member functions (#4094) 2022-05-10 13:04:45 +02:00
testcppcheck.cpp Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
testerrorlogger.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testexceptionsafety.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testfilelister.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testfunctions.cpp use-retval for localtime() (#3935) 2022-03-25 17:32:54 +01:00
testgarbage.cpp Fix #10451 syntaxError with typedef and lambda (#3900) 2022-03-14 17:59:29 +01:00
testimportproject.cpp compile_commands.json: ensure that order of include paths are kept 2022-03-24 22:50:04 +01:00
testincompletestatement.cpp Fix #10952 FP constStatement with cast in return (#3986) 2022-04-07 14:11:14 +02:00
testinternal.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testio.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testleakautovar.cpp Fix #11014 FN redundantPointerOp / remove simplifyMulAndParens() (#4062) 2022-05-01 15:46:07 +02:00
testlibrary.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testmathlib.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testmemleak.cpp Fix #3886 New Check : Return value of "new" ignored (#3884) 2022-04-09 19:06:32 +02:00
testnullpointer.cpp Fix 11040: FP nullPointer after loop (#4085) 2022-05-05 06:55:02 +02:00
testoptions.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testother.cpp Fix #10569 FN: duplicateExpression with multiple strings compared (#4087) 2022-05-09 21:05:35 +02:00
testpath.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testpathmatch.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testplatform.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testpostfixoperator.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testpreprocessor.cpp added (partial) support for specifying C++23 and support more "-std" options (#3212) 2022-04-15 16:17:36 +02:00
testrunner.cpp Update copyright year 2022-02-05 11:45:17 +01:00
testrunner.vcxproj aligned build options of Visual Studio project configurations and added them to CMake (#4020) 2022-04-21 21:28:29 +02:00
testrunner.vcxproj.filters Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
testsimplifytemplate.cpp Fix #10494 Same template name confuses check (#4011) 2022-04-13 12:25:21 +02:00
testsimplifytokens.cpp Fix 10951: FP knownEmptyContainer with east-const (#3988) 2022-04-08 08:22:39 +02:00
testsimplifytypedef.cpp Fix 11006: FP uninitvar with unknown constant (#4056) 2022-04-28 10:48:37 +02:00
testsimplifyusing.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testsizeof.cpp Fix #9648 FP sizeofDivisionMemfunc (#4017) 2022-04-13 18:21:56 +02:00
teststl.cpp Fix 11062: false positive: knownEmptyContainer (regression) (#4106) 2022-05-12 06:24:16 +02:00
teststring.cpp Added regression test for #8332. 2022-04-06 08:12:41 +02:00
testsuite.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testsuite.h Remove bug hunting. This feature will be provided in Cppcheck premium. 2022-04-11 07:31:33 +02:00
testsummaries.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testsuppressions.cpp Fix unmatched suppression (#5704) (#3886) 2022-03-30 19:24:53 +02:00
testsymboldatabase.cpp Fix #11001 syntaxError for valid C code sizeof(enum ...) (#4045) 2022-04-26 07:22:53 +02:00
testthreadexecutor.cpp cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
testtimer.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testtoken.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testtokenize.cpp AST: Fix AST for array size calculation in cast (char (*)[...]) 2022-05-10 22:47:57 +02:00
testtokenlist.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testtokenrange.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testtype.cpp Add tests for # 10773, #108787, #8991 (#4063) 2022-04-30 08:20:00 +02:00
testuninitvar.cpp Add tests for #6323, #6855, #6857 (#4096) 2022-05-10 18:25:01 +02:00
testunusedfunctions.cpp use std::string::empty() (#3910) 2022-04-09 19:02:37 +02:00
testunusedprivfunc.cpp Fix #10265 FP unused private method (#4015) 2022-04-13 14:49:28 +02:00
testunusedvar.cpp Added a regression test for ticket #10000 - No UnreadVariable for simple class 2022-05-03 06:58:03 +02:00
testutils.cpp enabled functionConst and functionStatic in selfcheck (#3862) 2022-03-02 07:46:47 +01:00
testutils.h cleaned up includes based on include-what-you-use (#4007) 2022-04-13 12:24:00 +02:00
testvaarg.cpp removed OVERRIDE and FINAL defines and use the keywords directly (#3767) 2022-02-10 23:02:24 +01:00
testvalueflow.cpp Fix 11057: FP danglingTemporaryLifetime with reference member (#4103) 2022-05-13 06:51:07 +02:00
testvarid.cpp Add tests for # 10773, #108787, #8991 (#4063) 2022-04-30 08:20:00 +02:00