cppcheck/test
Ken-Patrick Lehrmann 7c3afa0b36
9955: Fix ast when throwing a cast (#2900)
```
throw (std::string)"Error: " + strerror(errnum);
```
would result in a broken ast:
```
throw
`-::
  |-std
  `-string
```
instead of
```
throw
`-+ 'signed char *'
  |-( 'container(std :: string|wstring|u16string|u32string)'
  | `-"Error: " 'const char *'
  `-( 'signed char *'
    |-strerror
    `-errnum 'signed int'
```
2020-11-15 10:37:29 +01:00
..
bug-hunting Bug hunting: Add test case for CVE-2019-12977. Passing uninitialized struct to function 2020-07-13 20:42:53 +02:00
cfg cfg: cppunit: Fix FP with compareBoolExpressionWithInt within CPPUNIT_ASSERT_EQUAL (#2879) 2020-11-04 07:48:53 +01:00
cli Clang import: Handle AccessSpecDecl 2020-11-08 17:02:19 +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 added validateCFG and checkcfg targets to CMake / some refactorings (#2687) 2020-11-02 20:16:15 +01: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 Fix crash in cbmc detected with daca@home 2020-09-24 20:48:26 +02:00
testastutils.cpp optimized non-matchcompiled Token::simpleMatch() a bit (#2640) 2020-05-26 20:13:56 +02:00
testautovariables.cpp Fix issue 9939: False positive: Reference to temporary returned (static variable) (#2840) 2020-10-06 09:16:54 +02:00
testbool.cpp Update Copyright year 2020-10-03 09:15:56 +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 Bug hunting: Avoid uninit struct member false positives 2020-09-09 18:26:04 +02:00
testcharvar.cpp Remove test case, ValueFlow will truncate and sign-extend values 2019-05-01 19:33:47 +02:00
testclangimport.cpp Clang import: Fixed variable type for pointers 2020-11-10 09:35:41 +01:00
testclass.cpp Fix #9806 (False positive: template function can be static) (#2868) 2020-10-31 10:02:15 +01:00
testcmdlineparser.cpp Added Hash to plist file names (#2898) 2020-11-13 15:52:24 +01:00
testcondition.cpp TestCondition: Don't warn when sizeof is involved (#2896) 2020-11-11 08:01:11 +01:00
testconstructors.cpp Clarify inconclusive uninitMemberVar warning in copy constructors, it's in general a good idea to copy all the data. 2020-08-05 13:57:40 +02:00
testcppcheck.cpp made check.h less heavy (#2633) 2020-05-23 07:16:49 +02:00
testerrorlogger.cpp Add cppcheck-id for warnings. To start with it's a simple id that changes when file is changed. 2020-07-14 22:30:42 +02:00
testexceptionsafety.cpp Use 'normal' checking instead of 'simplified' 2019-03-16 07:19:48 +01:00
testexprengine.cpp Bug hunting; Better handling of constant 2020-10-08 17:24:35 +02:00
testfilelister.cpp Added Hash to plist file names (#2898) 2020-11-13 15:52:24 +01:00
testfunctions.cpp library: Add new warning: ignoredReturnErrorCode (#2877) 2020-11-05 13:35:52 +01:00
testgarbage.cpp Fixed crash on garbage code: comparisson with an empty second operand 2020-07-18 07:02:12 +03:00
testimportproject.cpp ImportProject: Add test case 2020-09-06 16:08:42 +02:00
testincompletestatement.cpp Avoid constStatement false positives for 'foo() || x=5'. Found in daca@home. 2020-09-29 13:35:39 +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 Fix false positive memoryleak (#2882) 2020-11-10 15:59:51 +01:00
testlibrary.cpp Library: Refactoring <alloc> init attribute 2020-06-28 21:01:43 +02:00
testmathlib.cpp Update copyright year 2020-05-10 11:16:32 +02:00
testmemleak.cpp Fix #9228 (FN common realloc mistake with assignment of NULL) 2020-09-13 21:49:49 +02:00
testnullpointer.cpp astyle formatting 2020-11-11 09:17:54 +01:00
testoptions.cpp Allow multiple test case arguments to testrunner (#1755) 2019-03-26 20:28:40 +01:00
testother.cpp fix passedByValueError on enums (#2869) 2020-10-30 18:32:35 +01: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 added validateCFG and checkcfg targets to CMake / some refactorings (#2687) 2020-11-02 20:16:15 +01:00
testsimplifytemplate.cpp fix #9975 (Template method not simplified) (#2894) 2020-11-10 21:19:04 +01: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 fix an error in Tokenizer::simplifyTypedef() (#2880) 2020-11-04 13:32:31 +01: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 9973: False positive: mismatching iterator container, reference (#2893) 2020-11-10 09:38:05 +01: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 Add support for comments at end of suppression in suppression files (#2736) 2020-08-20 21:49:07 +02:00
testsymboldatabase.cpp SymbolDatabase: Improved function matching in C code 2020-11-04 07:17:17 +01: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 Fixed #8506 (CPPCheck printing invalid characters in output) 2020-09-04 20:43:54 +02:00
testtokenize.cpp 9955: Fix ast when throwing a cast (#2900) 2020-11-15 10:37:29 +01: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 Refactor: Simplify checkSignConversion 2020-07-20 11:16:56 +02:00
testuninitvar.cpp Fix issue 9855: false positive: uninitvar (#2754) 2020-08-26 07:02:15 +02:00
testunusedfunctions.cpp Fix #9805 (False positive; Unused function (template)) (#2871) 2020-11-01 15:10:02 +01:00
testunusedprivfunc.cpp Update copyright year 2020-06-13 16:37:12 +02:00
testunusedvar.cpp Fixed #9737 (False positive: unreadVariable) 2020-10-25 20:32:45 +01: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 getSizeOf: Handle long double (#2888) 2020-11-11 22:51:17 +01:00
testvarid.cpp Fix #9647: Set correct enum value (#2856) 2020-10-22 07:45:04 +02:00