cppcheck/test
Ken-Patrick Lehrmann 5a3789a23f 9769: Improve value flow for ternary operator
In some cases, the condition of the ternary operator is assigned a known
value after the two possible results, and in such cases, we would not
take the opportunity to assign a value to the ternary operator (and to
the other parents in the ast).
This patch adds this capability.
2020-06-20 10:29:28 +02:00
..
bug-hunting Bug hunting; Fix false negatives 2020-06-19 18:38:02 +02:00
cfg Better handle noreturn or throwing functions in valueflow 2020-06-17 19:06:14 +02:00
cli Check selected files from project (#2378) 2020-01-10 08:57:37 +01:00
synthetic Improve Python code 2017-06-05 13:23:00 +02:00
testsuites Rename test cases, 'verification' was renamed to 'bug hunting' 2020-01-15 21:11:04 +01:00
CMakeLists.txt use precompiled headers if CMake supports it 2020-06-16 19:56:53 +02:00
options.cpp Update Copyright 2019-06-29 07:49:14 +02:00
options.h Update Copyright 2019-06-29 07:49:14 +02:00
precompiled.h Update copyright year 2020-06-13 16:37:12 +02:00
redirect.h Update copyright year 2020-05-10 11:16:32 +02:00
test.cxx
test64bit.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testassert.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testastutils.cpp optimized non-matchcompiled Token::simpleMatch() a bit (#2640) 2020-05-26 20:13:56 +02:00
testautovariables.cpp Fix issue 9712: False positive: Returning pointer to local variable when return line implicitly cast to return type (#2662) 2020-05-23 23:12:00 +02:00
testbool.cpp Revert "TestTrac: Add separate file for black box / integration tests in testrunner" 2020-05-19 07:53:54 +02:00
testboost.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testbufferoverrun.cpp Fix some false positive in loop forward analysis (#2669) 2020-06-05 18:06:03 +02:00
testbughuntingchecks.cpp ExprEngine; Simple handling of increment/decrement 2020-06-19 17:35:35 +02:00
testcharvar.cpp Remove test case, ValueFlow will truncate and sign-extend values 2019-05-01 19:33:47 +02:00
testclangimport.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testclass.cpp Removed CheckClass::operatorEq: does not 'belong' 2020-06-17 20:35:43 +02:00
testcmdlineparser.cpp Revert "Cleanup: Removed Tokenizer::simplifyTokenList2. As a side-effect, rules for "simple" token list are now executed on normal token list." (#2666) 2020-05-30 11:23:22 +02:00
testcondition.cpp Fix issue 9721: ValueFlow: Comparison is always false, but ValueFlow says it is always true (#2658) 2020-05-23 07:15:13 +02:00
testconstructors.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testcppcheck.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testerrorlogger.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testexceptionsafety.cpp Use 'normal' checking instead of 'simplified' 2019-03-16 07:19:48 +01:00
testexprengine.cpp ExprEngine; Refactor and improve code. Add tests for increments. 2020-06-19 20:40:20 +02:00
testfilelister.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testfunctions.cpp Fix testrunner fail, introduced by latest commit 2020-06-12 09:18:16 +02:00
testgarbage.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testimportproject.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testincompletestatement.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testinternal.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testio.cpp Update test. An inconclusive warning message is now shown. 2020-06-14 22:57:50 +02:00
testleakautovar.cpp Formatted the code, there are no functional changes [ci skip] 2020-05-20 23:45:00 +02:00
testlibrary.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testmathlib.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testmemleak.cpp Fixed test suite: Do no longer apply simplifyTokenList2 to token lists, except for those tests that test those simplifications, because checks are no longer run on that simplified token list 2020-05-20 18:54:16 +02:00
testnullpointer.cpp Fix issue 9751: Wrong lifetime caused by std::function (#2676) 2020-06-13 10:26:54 +02:00
testoptions.cpp Allow multiple test case arguments to testrunner (#1755) 2019-03-26 20:28:40 +01:00
testother.cpp Fix issue 9718: False positive: Parameter can be declared const when written to via stream extraction operator (#2677) 2020-06-13 09:20:40 +02:00
testpath.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testpathmatch.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testplatform.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testpostfixoperator.cpp Valid code for incrementing raw pointer (#2418) 2019-12-03 18:33:05 +01:00
testpreprocessor.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testrunner.cpp Update Copyright 2019-06-29 07:49:14 +02:00
testrunner.vcxproj Visual Studio: Use new files precompiled.h with several common includes for core and testrunner. 2020-05-29 12:16:04 +02:00
testrunner.vcxproj.filters Visual Studio: Use new files precompiled.h with several common includes for core and testrunner. 2020-05-29 12:16:04 +02:00
testsamples.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testsimplifytemplate.cpp Fix handling of c++ casts in template expansion 2020-06-16 19:36:04 +02:00
testsimplifytokens.cpp Revert "Cleanup: Removed Tokenizer::simplifyTokenList2. As a side-effect, rules for "simple" token list are now executed on normal token list." (#2666) 2020-05-30 11:23:22 +02:00
testsimplifytypedef.cpp Revert "Cleanup: Removed Tokenizer::simplifyTokenList2. As a side-effect, rules for "simple" token list are now executed on normal token list." (#2666) 2020-05-30 11:23:22 +02:00
testsimplifyusing.cpp Simplify empty anonymous namespaces. (#2673) 2020-06-07 13:49:04 +02:00
testsizeof.cpp Optimization: Reduced peak memory usage (30% in my test case) by immediately deleting simplecpp::TokenList while creating the cppcheck TokenList. 2020-05-19 12:08:17 +02:00
teststl.cpp Fix issue 9548: False negative: Mismatching iterators when inserting into a vector (#2595) 2020-06-06 17:54:56 +02:00
teststring.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testsuite.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testsuite.h made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testsuppressions.cpp executeCommand in CppCheckExecutor or QCheckThread 2020-05-19 16:04:40 +02:00
testsymboldatabase.cpp Fixed #9746 (SymbolDatabase: Wrong valueType for return) 2020-06-10 21:13:53 +02:00
testthreadexecutor.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtimer.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtoken.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testtokenize.cpp 8526: Fix ast construction for ternary operator 2020-06-14 18:57:18 +02:00
testtokenlist.cpp Fixed Token::isKeyword: Actually set this flag to a reasonable value in all code paths 2020-05-19 13:47:25 +02:00
testtype.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testuninitvar.cpp Fixed #9750 (Chained stream operation gives uninitvar error) 2020-06-06 15:24:01 +02:00
testunusedfunctions.cpp TestSuite: The ASSERT and ASSERT_EQUALS will now stop executing the test case upon failure. This can be used to avoid extra guard logic in tests. 2019-09-16 06:34:45 +02:00
testunusedprivfunc.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testunusedvar.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testutils.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testutils.h Update copyright year 2020-06-13 16:37:12 +02:00
testvaarg.cpp Disable all simplified checks 2019-03-16 09:17:50 +01:00
testvalueflow.cpp 9769: Improve value flow for ternary operator 2020-06-20 10:29:28 +02:00
testvarid.cpp Fix testrunner 2020-05-25 16:02:34 +02:00