cppcheck/test
rikardfalkeborn dc4e7cef88 Run simplifyPlatformTypes on library return types (#1672)
Add a call to simplifyPlatformTypes() in
SymbolDatabase::setValueTypeInTokenList() to simplify return types of
library configured functions. This fixes the FN in #8141. Regression
tests are added, both for the original issue and another FN in the comments.

In order to do that, move simplifyPlatformTypes() to TokenList from Tokenizer.
This is a pure refactoring and does not change any behaviour. The code was
literally copy-pasted from one file to another and in two places
'list.front()' was changed to 'front()'.

When adding the call to simplifyPlatformTypes(), the original type of
v.size() where v is a container is changed from 'size_t' to 'std::size_t'.
Tests are updated accordingly. It can be noted that if v is declared as
'class fred : public std::vector<int> {} v', the original type of 'v.size()'
is still 'size_t' and not 'std::size_t'.
2019-02-15 13:29:52 +01:00
..
cfg gtk.cfg: Add type conversion macros 2019-02-15 08:44:21 +01:00
synthetic Improve Python code 2017-06-05 13:23:00 +02:00
CMakeLists.txt Add a check target to cmake (#1465) 2018-11-05 18:13:04 +01: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 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 2019-02-09 07:24:06 +01:00
testassert.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testastutils.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testautovariables.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testbool.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testboost.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testbufferoverrun.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testcharvar.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testclass.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testcmdlineparser.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testcondition.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testconstructors.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testcppcheck.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testerrorlogger.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testexceptionsafety.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testfilelister.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testfiles.pri Fixed #8960 ("(debug) Unknown type 'x'." with alias in template class alias) (#1643) 2019-02-05 08:52:23 +01:00
testfunctions.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testgarbage.cpp token simplifier: fix crashes related to #8972 (#1659) 2019-02-11 07:45:03 +01:00
testimportproject.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testincompletestatement.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testinternal.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testio.cpp Run simplifyPlatformTypes on library return types (#1672) 2019-02-15 13:29:52 +01:00
testleakautovar.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testlibrary.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testmathlib.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testmemleak.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testnullpointer.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testoptions.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testother.cpp Run simplifyPlatformTypes on library return types (#1672) 2019-02-15 13:29:52 +01:00
testpath.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testpathmatch.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testplatform.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testpostfixoperator.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testpreprocessor.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testrunner.cpp Updated copyright year 2018-10-13 18:20:31 +02:00
testrunner.vcxproj Fixed #8960 ("(debug) Unknown type 'x'." with alias in template class alias) (#1643) 2019-02-05 08:52:23 +01:00
testrunner.vcxproj.filters Export interfaces from cppcheck-core.dll used from testrunner. In turn remove ctu sources from testrunner which are obsolete now. 2018-12-28 23:09:44 +01:00
testsamples.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testsimplifytemplate.cpp Fixed #8962 ("(debug) Unknown type 'T'" with template typename parame… (#1671) 2019-02-14 11:48:59 +01:00
testsimplifytokens.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testsimplifytypedef.cpp Ticket #8878: Properly simplify typedefs within template instantiations. (#1656) 2019-02-10 09:45:33 +01:00
testsimplifyusing.cpp Fixed #8976 (Crash on `using mystring = std::string;`) (#1663) 2019-02-12 09:39:01 +01:00
testsizeof.cpp Update copyright year 2019-02-09 07:24:06 +01:00
teststl.cpp Update copyright year 2019-02-09 07:24:06 +01:00
teststring.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testsuite.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testsuite.h Update copyright year 2019-02-09 07:24:06 +01:00
testsuppressions.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testsymboldatabase.cpp Update copyright year 2019-02-09 07:24:06 +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 Update copyright year 2019-02-09 07:24:06 +01:00
testtokenize.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtokenlist.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testtype.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testuninitvar.cpp UninitVar: Fix --experimental-fast issues 2019-02-10 19:00:01 +01:00
testunusedfunctions.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testunusedprivfunc.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testunusedvar.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testutils.h Update copyright year 2019-02-09 07:24:06 +01:00
testvaarg.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testvalueflow.cpp Update copyright year 2019-02-09 07:24:06 +01:00
testvarid.cpp Fixed #8971 ("(debug) Unknown type 'x'." using alias in class members) (#1653) 2019-02-09 08:34:59 +01:00