cppcheck/test
dummyunit 9652ca39a3
Improve support for labels in simplifyAddBraces step (#3278)
Previously only a single regular label before a compound statement was
allowed in simplifyAddBracesPair() after if/switch/do/while/for.
This patch adds support for:
* case-labels;
* labels before a single statement;
* labels before try/catch blocks;
* multiple consecutive labels.

Additionally the code for skipping a case label was extracted into a
separate function from simplifyLabelsCaseDefault() and reused in
simplifyAddBracesPair().
2021-06-02 07:00:37 +02:00
..
bug-hunting some Python cleanups based on PyCharm inspections (#2999) 2021-01-31 14:27:11 +01:00
cfg Fixed 'make checkcfg' 2021-05-22 07:39:27 +02:00
cli Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
synthetic fixed/excluded some shellcheck warnings and actually fail the build when something is found (#3068) 2021-01-20 18:43:49 +01:00
testsuites Rename test cases, 'verification' was renamed to 'bug hunting' 2020-01-15 21:11:04 +01:00
CMakeLists.txt fix w64-mingw32-ld linking error (#3184) 2021-03-29 17:04:42 +02:00
options.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
options.h Update Copyright 2019-06-29 07:49:14 +02:00
precompiled.h Update Copyright year 2021-03-21 20:58:32 +01:00
redirect.h Update copyright year 2020-05-10 11:16:32 +02:00
test.cxx test: tabs to spaces, remove trailing spaces and extra empty lines at the end of files 2012-09-17 13:51:40 +02:00
test64bit.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testassert.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testastutils.cpp Fixed #10070 (FP warning: Logical disjunction always evaluates to true) 2021-05-04 13:47:09 +02:00
testautovariables.cpp Fix issue 10214: FP: danglingTempReference doesn't account for reference lifetime extension (#3220) 2021-04-19 14:20:29 +02:00
testbool.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testboost.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testbufferoverrun.cpp extracttests; do not extract TestBufferOverrunterminateStrncpy tests 2021-05-24 13:17:29 +02:00
testbughuntingchecks.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testcharvar.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testclangimport.cpp Revert "Clang import; This experimental feature didn't "take off" much. After a lot of work we are still far fram the goal. I remove it now but don't rule out completely that it could ever be added again." 2021-04-30 16:47:02 +02:00
testclass.cpp Running astyle [ci skip] 2021-04-09 08:46:47 +02:00
testcmdlineparser.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
testcondition.cpp 10278: ValueFlow: Wrong known value, sign conversion (#3260) 2021-05-18 07:28:45 +02:00
testconstructors.cpp fix #10295 (false negatives by inconsistent 'void' in argument list (declaration vs definition)) (#3274) 2021-05-24 19:32:15 +02:00
testcppcheck.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testerrorlogger.cpp astyle formatting 2021-04-22 19:08:24 +02:00
testexceptionsafety.cpp New check for rethrow without current handled exception (#3270) 2021-05-31 10:39:24 +02:00
testexprengine.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
testfilelister.cpp Check stat return value in addFiles2 (#3214) 2021-04-18 21:52:14 +02:00
testfunctions.cpp Fix false positive invalidFunctionArg for zero arguments to calloc. (#3238) 2021-05-01 12:39:01 +02:00
testgarbage.cpp Tokenizer::findGarbageCode: detect wrong struct declaration 2021-05-08 15:28:21 +02:00
testimportproject.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testincompletestatement.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testinternal.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testio.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testleakautovar.cpp Fix test case for #10186 (#3253) 2021-05-10 08:01:30 +02:00
testlibrary.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
testmathlib.cpp Refactoring; Reuse simplecpp::characterLiteralToLL 2021-05-02 13:44:37 +02:00
testmemleak.cpp Tokenizer::findGarbageCode: detect wrong struct declaration 2021-05-08 15:28:21 +02:00
testnullpointer.cpp updated extracttests.py. fix syntax errors in test cases. 2021-05-13 20:21:02 +02:00
testoptions.cpp Allow multiple test case arguments to testrunner (#1755) 2019-03-26 20:28:40 +01:00
testother.cpp #10026: Added a regression test for 'false negative: duplicateExpression' 2021-05-24 08:54:45 +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 Update Copyright year 2021-03-21 20:58:32 +01:00
testpreprocessor.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testrunner.cpp Update Copyright 2019-06-29 07:49:14 +02:00
testrunner.vcxproj Set language compatibility to C++14 in Visual Studio (#2967) 2020-12-22 10:24:25 +01:00
testrunner.vcxproj.filters Visual Studio; Try to fix compilation 2020-12-20 21:01:45 +01:00
testsamples.cpp Check stat return value in addFiles2 (#3214) 2021-04-18 21:52:14 +02:00
testsimplifytemplate.cpp astyle formatting 2021-05-23 14:36:45 +02:00
testsimplifytokens.cpp fix #10281 (Tokenizer; Wrong simplification for 'namespace ef = :🅰️🅱️:c::d::ef') (#3263) 2021-05-20 08:27:07 +02:00
testsimplifytypedef.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testsimplifyusing.cpp fix daca2 paraview crash from uninstantiated recursive template (#3237) 2021-04-29 11:09:51 +02:00
testsizeof.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
teststl.cpp Fix 10290: false negative: container out of bounds (#3269) 2021-05-22 23:33:13 +02:00
teststring.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testsuite.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testsuite.h Update Copyright year 2021-03-21 20:58:32 +01:00
testsummaries.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testsuppressions.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
testsymboldatabase.cpp fix #10295 (false negatives by inconsistent 'void' in argument list (declaration vs definition)) (#3274) 2021-05-24 19:32:15 +02:00
testthreadexecutor.cpp cleaned up includes based on include-what-you-use (#3141) 2021-04-03 21:30:50 +02:00
testtimer.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtoken.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testtokenize.cpp Improve support for labels in simplifyAddBraces step (#3278) 2021-06-02 07:00:37 +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 Fix UB on right-shift. (#3235) 2021-04-28 11:57:28 +02:00
testuninitvar.cpp Uninitialized variables; Add todo test case 2021-05-28 18:09:43 +02:00
testunusedfunctions.cpp Refactoring __attribute__ simplification 2021-05-01 11:39:26 +02:00
testunusedprivfunc.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testunusedvar.cpp Fixed #10276 (FP: (style) Variable '((uint8_t*)(uint16_t)0x1000)[0]' is assigned a value that is never used.) 2021-05-18 20:35:00 +02:00
testutils.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testutils.h Update Copyright year 2021-03-21 20:58:32 +01:00
testvaarg.cpp Update Copyright year 2021-03-21 20:58:32 +01:00
testvalueflow.cpp Fix 10289: ValueFlow; Wrong known value 'size_t - uint16_t > 0' (#3273) 2021-05-24 08:28:21 +02:00
testvarid.cpp Parser; Set varid for structured binding variables 2021-04-26 18:04:27 +02:00