cppcheck/test
David Hallas 4d18d3948f Fixes issue with case inside switch that is not a compound statement (#1031)
* Fixes issue with case inside switch that is not a compound statement was treated as garbage

This fixes an issue with the check for case keywords outside of switch
detection that would treat a case statement inside a switch that is not
a compound statement as garbage, but this is perfectly valid C++. This
construct is used in several libraries, i.e. Google Test.

* Tweak check and handle missing semicolon

Tweaks the check with feedback from danmar.
Handle the case where there is no semicolon and document it with a unit
test.
2018-01-27 22:21:26 +01:00
..
cfg Add windows configuration tests (#1053) 2018-01-24 20:05:16 +01:00
synthetic Improve Python code 2017-06-05 13:23:00 +02:00
CMakeLists.txt Fixed #7660 (cmake build does not handle simplecpp) 2016-08-06 18:21:54 +02:00
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 2018-01-14 15:37:52 +01:00
testassert.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testastutils.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testautovariables.cpp Fixed #8325 (False negative: address of auto variable being returned when assigned to another variable first) 2018-01-27 14:48:45 +01:00
testbool.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testboost.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testbufferoverrun.cpp Fixed #6356 (Improve checking: pointer arithmetic "ab.a + 100" overrun) 2018-01-27 15:39:39 +01:00
testcharvar.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testclass.cpp Ticket #8337: Fix false positive in copy constructor detection. (#1040) 2018-01-20 14:46:09 +01:00
testcmdlineparser.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testcondition.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testconstructors.cpp Fix #5766 (FP: typedef array throws off parser) (#1052) 2018-01-24 09:51:22 +01:00
testcppcheck.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testerrorlogger.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testexceptionsafety.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testfilelister.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testfiles.pri Fixed #7177 (Support compile_commands.json) 2016-08-13 10:50:03 +02:00
testfunctions.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testgarbage.cpp Fixes issue with case inside switch that is not a compound statement (#1031) 2018-01-27 22:21:26 +01:00
testimportproject.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testincompletestatement.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testinternal.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testio.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testleakautovar.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testlibrary.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testmathlib.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testmemleak.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testnullpointer.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testoptions.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testother.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testpath.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testpathmatch.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testpostfixoperator.cpp Fixed #8350 (False positive: enum class static_cast to int is treated as non-primitive when type inference is used) (#1042) 2018-01-21 07:26:37 +01:00
testpreprocessor.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testrunner.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testrunner.vcxproj also generate debug information when building for release. This makes (#1003) 2017-11-29 08:31:30 +01:00
testrunner.vcxproj.filters Support relative paths in Visual Studio projects properties (#995) 2017-11-11 11:13:18 +01:00
testsamples.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsimplifytemplate.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsimplifytokens.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsimplifytypedef.cpp Fix simplifyTypedef crash on lambda. (#1054) 2018-01-24 15:04:33 +01:00
testsizeof.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
teststl.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
teststring.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsuite.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsuite.h Updated copyright year 2018-01-14 15:37:52 +01:00
testsuppressions.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testsymboldatabase.cpp Fix symbol database crash on template type aliases by ignoring them. (#1045) 2018-01-21 21:22:26 +01:00
testthreadexecutor.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testtimer.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testtoken.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testtokenize.cpp Fixes issue with case inside switch that is not a compound statement (#1031) 2018-01-27 22:21:26 +01:00
testtokenlist.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testtype.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testuninitvar.cpp UninitVar: Improve whole program analysis, used isVariableUsage() 2018-01-25 21:49:21 +01:00
testunusedfunctions.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testunusedprivfunc.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testunusedvar.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testutils.h Update copyright year to 2007-2016. 2016-01-01 15:34:45 +02:00
testvaarg.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testvalueflow.cpp Updated copyright year 2018-01-14 15:37:52 +01:00
testvarid.cpp Updated copyright year 2018-01-14 15:37:52 +01:00