cppcheck/test
Rikard Falkeborn 2a17e624d9 Overlapping sprintf, improve handling of casts (#1945)
* Overlapping sprintf, improve handling of casts

If there is a cast of the argument buffer, cppcheck would print out the
expression including the cast, which looks a bit strange to talk about

    Variable (char*)buf is used as...

Instead, only print the variable name without the cast.

Also, handle arbitrary many casts (the previous code only handled one).
Multiple casts of the input arguments is probably an unusual case in
real code, but can perhaps occur if macros are used.

* Fix printing of variable

... and add a test.

* Simplify testcase
2019-07-05 12:27:39 +02:00
..
cfg openmp.cfg: Add library configuration for OpenMP (#1956) 2019-07-05 03:00:52 +02:00
cli Better handling of spaces in paths 2019-06-22 19:20:15 +02:00
synthetic Improve Python code 2017-06-05 13:23:00 +02:00
testsuites Typos found by running "codespell" (#1804) 2019-04-23 13:26:48 +02:00
CMakeLists.txt
options.cpp Update Copyright 2019-06-29 07:49:14 +02:00
options.h Update Copyright 2019-06-29 07:49:14 +02:00
redirect.h
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
testassert.cpp
testastutils.cpp Adjust more test results for invalid code 2019-04-19 20:53:07 +02:00
testautovariables.cpp Fixx issue 9163: FP returnDanglingLifetime - returning std::string::find (#1912) 2019-06-24 18:52:17 +02:00
testbool.cpp Remove debug printout (#1933) 2019-06-28 22:08:32 +02:00
testboost.cpp
testbufferoverrun.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testcharvar.cpp Remove test case, ValueFlow will truncate and sign-extend values 2019-05-01 19:33:47 +02:00
testclass.cpp Update symbol database such that the override keyword implies that the function is also virtual (#1907) 2019-07-04 12:32:32 +02:00
testcmdlineparser.cpp Fix compiler errors. After removing the -std=posix. 2019-04-12 10:41:53 +02:00
testcondition.cpp Fixed #7464 (warn about opposite if and else-if conditions) 2019-06-30 23:26:49 +02:00
testconstructors.cpp Revert "Remove bailout. It hides lots of warnings for real code to avoid FP in unused templates." 2019-06-19 22:29:00 +02:00
testcppcheck.cpp
testerrorlogger.cpp
testexceptionsafety.cpp
testfilelister.cpp
testfiles.pri
testfunctions.cpp Fix false positive with ignoredReturnValue with std::move (#1809) 2019-04-26 12:22:31 +02:00
testgarbage.cpp Check for more garbage code (#1949) 2019-07-03 08:28:24 +02:00
testimportproject.cpp astyle formatting 2019-04-16 19:07:44 +02:00
testincompletestatement.cpp astyle formatting 2019-05-21 10:43:33 +02:00
testinternal.cpp
testio.cpp
testleakautovar.cpp Fix #9047 (c-style casts before malloc) (#1930) 2019-07-03 08:39:44 +02:00
testlibrary.cpp More Zero/Null as pointer constant corrections (#1947) 2019-07-02 20:37:44 +02:00
testmathlib.cpp MathLib: Added robustness tests for 'MathLib::divide()'. 2019-05-25 23:06:50 +02:00
testmemleak.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testnullpointer.cpp Revert 'Cleaning up unsimplified templates'. This fix caused problems. 2019-05-16 21:11:04 +02:00
testoptions.cpp
testother.cpp Check for more garbage code (#1949) 2019-07-03 08:28:24 +02:00
testpath.cpp
testpathmatch.cpp
testplatform.cpp
testpostfixoperator.cpp
testpreprocessor.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testrunner.cpp Update Copyright 2019-06-29 07:49:14 +02:00
testrunner.vcxproj
testrunner.vcxproj.filters
testsamples.cpp
testsimplifytemplate.cpp Fixed #9147(SymbolDatabase bailout: unhandled code) (#1948) 2019-07-03 08:35:48 +02:00
testsimplifytokens.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testsimplifytypedef.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testsimplifyusing.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testsizeof.cpp
teststl.cpp Fixed #9094 (Tokenizer::createLinks2 problem with 'x%x<--a==x>x') 2019-05-11 19:11:40 +02:00
teststring.cpp Overlapping sprintf, improve handling of casts (#1945) 2019-07-05 12:27:39 +02:00
testsuite.cpp Fixed Cppcheck shadowVar warnings 2019-04-30 21:01:18 +02:00
testsuite.h
testsuppressions.cpp
testsymboldatabase.cpp Update symbol database such that the override keyword implies that the function is also virtual (#1907) 2019-07-04 12:32:32 +02:00
testthreadexecutor.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtimer.cpp
testtoken.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testtokenize.cpp Fix syntax error with lambda captures (#1954) 2019-07-05 12:26:01 +02:00
testtokenlist.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtype.cpp Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testuninitvar.cpp uninitStructMember: Fixed FP shown in daca@home 2019-06-02 20:19:53 +02:00
testunusedfunctions.cpp fixed tests, unused templates are removed by default 2019-05-05 19:40:58 +02:00
testunusedprivfunc.cpp
testunusedvar.cpp astyle formatting 2019-07-03 08:29:47 +02:00
testutils.h Correct Zero/Null as pointer constant (#1938) 2019-06-30 21:39:22 +02:00
testvaarg.cpp
testvalueflow.cpp Fixed #8356 (ValueFlow: variable is not changed in for loop) 2019-06-30 17:50:35 +02:00
testvarid.cpp token simplifier: fix namespace, token link and syntax error support for template type aliases (#1863) 2019-06-01 10:52:29 +02:00