cppcheck/test
tsteven4 4183336dc1
fix skipping of cpp attributes. (#4971)
* fix skipping of cpp attributes.

* fix simplifyCPPAttribute loop.

When the first token was the start of a c++ attribute on a function,
so that tok->previous() was nullptr at the bottom of the loop,
an extra token would be skipped.  This could result in the corresponding
function being omitted from the symbol table.

* fix alignas test failure, enhance cpp attr test.

* uncrustify.

* fix redundantNextPrevious

* delete redundant code.

* add some tokenizer tests for simplifyCPPAttribute.

* enhance noreturn symbol test.

The order of a noreturn attribute and another attribute used to
matter.  Test both orders.
2023-04-17 20:36:25 +02:00
..
cfg Update constVariable IDs for references and pointers (#4904) 2023-04-07 20:14:53 +02:00
cli fixed CI. I remove dump files in cppcheck build dir after analysis. 2023-04-07 19:02:34 +02:00
CMakeLists.txt use `ccache` for sanitizer builds / do not use precompiled headers with `ccache` (#4910) 2023-04-01 09:40:10 +02:00
fixture.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
fixture.h do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
helpers.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
helpers.h optimized suppression lookups a bit when no suppressions exist (#4839) 2023-03-03 18:37:09 +01:00
main.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
options.cpp Update copyright year 2023-01-28 10:16:34 +01:00
options.h Update Copyrights 2022-08-28 14:22:12 +02:00
precompiled.h cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
redirect.h simplified `ThreadExecutor` class by moving some code out of it / fixed some thread safety issues (#4849) 2023-03-04 12:05:17 +01:00
test64bit.cpp Fix FP returnTempReference (#4793) 2023-02-17 07:17:37 +01:00
testanalyzerinformation.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testassert.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testastutils.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testautovariables.cpp Fix 11630 and 11620 lifetime issues (#4913) 2023-03-24 13:29:43 +01:00
testbool.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testboost.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testbufferoverrun.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testcharvar.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testclangimport.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testclass.cpp testclass.cpp: fixed compilation (#4927) 2023-04-01 19:58:58 +02:00
testcmdlineparser.cpp do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
testcolor.cpp optimized template string substitutions a bit (#4840) 2023-04-08 22:19:52 +02:00
testcondition.cpp #8499 Added regression test: (style) Condition 'i==0||i==1' is always true (for loop index) 2023-03-17 19:06:17 +01:00
testconstructors.cpp Fix FN uninitMemberVar with std::array (#4935) 2023-04-06 18:45:12 +02:00
testcppcheck.cpp removed `CppCheck` dependency from `CppCheckExecutor::parseFromArgs()` (#4967) 2023-04-16 13:54:21 +02:00
testerrorlogger.cpp do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
testexceptionsafety.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testfilelister.cpp improved setting of platform in tests / also improved platform tests (#4787) 2023-02-11 10:44:56 +01:00
testfunctions.cpp Fix autoNoType with std::begin() / function returning smart ptr (#4919) 2023-04-01 09:38:40 +02:00
testgarbage.cpp Fix #11639 findGarbageCode(): SIGSEGV (#4917) 2023-03-28 11:24:52 +02:00
testimportproject.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testincompletestatement.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testinternal.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testio.cpp iwyu.yml: added `clang-include-cleaner` job / cleaned up includes based on `include-what-you-use` (#4844) 2023-03-04 08:53:19 +01:00
testleakautovar.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testlibrary.cpp avoid some unchecked pointer dereferences (#4811) 2023-03-02 22:05:41 +01:00
testmathlib.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testmemleak.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testnullpointer.cpp testnullpointer.cpp: restored TODO assert in `nullpointerStdStream` (#4914) 2023-03-26 16:18:44 +02:00
testoptions.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testother.cpp Fix autoNoType with function returning container, rvalue reference (#4926) 2023-04-12 22:10:10 +02:00
testpath.cpp Revert "improved `Path` handling of mixed separators (#4808)" 2023-02-24 06:21:02 +01:00
testpathmatch.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testplatform.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testpostfixoperator.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testpreprocessor.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testprocessexecutor.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
testrunner.vcxproj optimized template string substitutions a bit (#4840) 2023-04-08 22:19:52 +02:00
testrunner.vcxproj.filters generate `*.vcxproj` file lists with `dmake` (#4652) 2023-01-21 11:55:36 +01:00
testsettings.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testsimplifytemplate.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testsimplifytokens.cpp Fix #11629 debug: Scope::checkVariable found variable 'np' with varid 0. (#4915) 2023-04-03 15:41:19 +02:00
testsimplifytypedef.cpp Fix #11634 Crash in TypedefSimplifier (#4938) 2023-04-07 11:09:13 +02:00
testsimplifyusing.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testsingleexecutor.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
testsizeof.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
teststl.cpp Fix 11630 and 11620 lifetime issues (#4913) 2023-03-24 13:29:43 +01:00
teststring.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testsummaries.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testsuppressions.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
testsymboldatabase.cpp fix skipping of cpp attributes. (#4971) 2023-04-17 20:36:25 +02:00
testthreadexecutor.cpp extracted single job execution into `SingleExecutor` / improved testing / do not unconditionally apply colors to output (#4882) 2023-04-08 18:06:38 +02:00
testtimer.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testtoken.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testtokenize.cpp fix skipping of cpp attributes. (#4971) 2023-04-17 20:36:25 +02:00
testtokenlist.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00
testtokenrange.cpp Update copyright year 2023-01-28 10:16:34 +01:00
testtype.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testuninitvar.cpp Fix remaining example from #11599, FN #11646, fix crash (#4929) 2023-04-06 18:46:45 +02:00
testunusedfunctions.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testunusedprivfunc.cpp made `Platform` a member of `Settings` instead of inheriting from it / cleanups (#4791) 2023-03-03 18:36:27 +01:00
testunusedvar.cpp Fix #551 Detect unused Private member variables (#4973) 2023-04-17 20:34:39 +02:00
testutils.cpp do not use string-to-integer conversions without error handling (#4906) 2023-04-08 22:29:09 +02:00
testvaarg.cpp cleaned up includes based on `include-what-you-use` (#4599) 2023-03-02 21:50:14 +01:00
testvalueflow.cpp ValueFlow: Infer possible symbolic values (#4947) 2023-04-10 19:27:29 +02:00
testvarid.cpp iwyu.yml: use a distro which has the latest `include-what-you-use` / enabled Qt mappings / cleaned up includes (#4885) 2023-04-08 16:08:47 +02:00