cppcheck/test
Paul Fultz II 9895ea5ff2 Fix issue 470: Condition is always true or false on logical operators (#1294)
* Fix issue 470: Condition is always true or false on logical operators

* Dont warn on literals

* Compute logical operators using valueflow

* Fix FP when using literals

* Always warn on subconditions that are always true

* Use percent matches first

* Add test for logical operators

* Check if parent is null
2018-07-23 08:51:59 +02:00
..
cfg posix.cfg: Add some pthread_mutex_* functions. (#1320) 2018-07-21 17:52:12 +02:00
synthetic Improve Python code 2017-06-05 13:23:00 +02:00
CMakeLists.txt
options.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
options.h Updated copyright year 2018-01-14 15:37:52 +01:00
redirect.h Updated copyright year 2018-01-14 15:37:52 +01:00
test.cxx
test64bit.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testassert.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testastutils.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testautovariables.cpp Use Variable::valueType instead of Variable::typeStartToken in auto variables 2018-06-24 08:25:19 +02:00
testbool.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testboost.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testbufferoverrun.cpp Fix crash bug #8579 (#1238) 2018-05-25 07:15:05 +02:00
testcharvar.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testclass.cpp Fixed #8573 (FP noCopyConstructor - derive from noncopyable class) 2018-06-06 16:02:25 +02:00
testcmdlineparser.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testcondition.cpp Fix issue 470: Condition is always true or false on logical operators (#1294) 2018-07-23 08:51:59 +02:00
testconstructors.cpp CheckClass: Restore a few warnings about member initialization of classes 2018-06-29 22:54:12 +02:00
testcppcheck.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testerrorlogger.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testexceptionsafety.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testfilelister.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testfiles.pri testrunner: Add testplatform to verify platform loading (#1176) 2018-04-18 16:12:35 +02:00
testfunctions.cpp Move sqrt{,f,l} argument checks to cfg file (#1313) 2018-07-20 20:56:39 +02:00
testgarbage.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testimportproject.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testincompletestatement.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testinternal.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testio.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testleakautovar.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testlibrary.cpp Rename Library::isargvalid() 2018-07-15 23:05:48 +02:00
testmathlib.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testmemleak.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testnullpointer.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testoptions.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testother.cpp fix ticket 8570: passedByValue with member initializer list and std::move (#1316) 2018-07-22 15:01:18 +02:00
testpath.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testpathmatch.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testplatform.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testpostfixoperator.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testpreprocessor.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testrunner.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testrunner.vcxproj Visual Studio: testrunner: Add missing testastutils (#1186) 2018-04-23 20:03:06 +02:00
testrunner.vcxproj.filters Visual Studio: testrunner: Add missing testastutils (#1186) 2018-04-23 20:03:06 +02:00
testsamples.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testsimplifytemplate.cpp astyle formatting 2018-05-31 07:02:08 +02:00
testsimplifytokens.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testsimplifytypedef.cpp Fixed #7406 (Tokenizer::simplifyTypedef: array typedef used as template parameter) (#1257) 2018-05-22 17:31:58 +02:00
testsizeof.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
teststl.cpp Fixed #8360 (false positive "Ineffective call of function 'empty()'") 2018-07-10 22:58:02 +02:00
teststring.cpp Clarify warnings when char literals are converted to bool in conditions 2018-07-21 18:40:06 +02:00
testsuite.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testsuite.h Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testsuppressions.cpp inline suppressions: treat arithmetic operators as start-of-comment 2018-06-09 22:50:51 +02:00
testsymboldatabase.cpp Extend TestSymbolDatabase::findFunction19 to outline different results depending whether char is signed or unsigned on compile time 2018-06-28 22:16:18 +02:00
testthreadexecutor.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testtimer.cpp Fix testrunner compiling 2018-06-16 22:28:14 +02:00
testtoken.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testtokenize.cpp windows.cfg: Improved support for more types. 2018-05-16 16:26:40 +02:00
testtokenlist.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testtype.cpp Fixed #8575 (false positive: longCastAssign) 2018-06-04 22:51:21 +02:00
testuninitvar.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testunusedfunctions.cpp Fix override warnings. (#1234) 2018-05-15 16:37:40 +02:00
testunusedprivfunc.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testunusedvar.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testutils.h Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testvaarg.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00
testvalueflow.cpp Fix issue 470: Condition is always true or false on logical operators (#1294) 2018-07-23 08:51:59 +02:00
testvarid.cpp Updated copyright year for modified files 2018-06-10 22:07:21 +02:00