Commit Graph

19689 Commits

Author SHA1 Message Date
versat bdfc20a482 donate-cpu.py: Enable "python" and "boost" library detection
Only enable the library option for those configurations if the
corresponding .cfg file exists to not crash Cppcheck if an
older version than 1.87 is used as the "old" version.
2019-02-09 18:11:09 +01:00
orbitcowboy 1ddaa1ecf3 std.cfg: Added support for std::ifstream::seekg() and std::istream::seekg(). 2019-02-09 17:13:07 +01:00
orbitcowboy d2732e9459 std.cfg: std::string::append() added 'arg nr any'. 2019-02-09 16:58:33 +01:00
orbitcowboy 2408096cc8 std.cfg: Added support for std::string::append(). 2019-02-09 16:43:08 +01:00
versat 6a592d18ab donate-cpu-server.py: Set OLD_VERSION to 1.87 2019-02-09 15:18:17 +01:00
Daniel Marjamäki 4f232e41dd Add --experimental-fast option 2019-02-09 14:40:50 +01:00
Daniel Marjamäki 10d3b2466b democlient: Fixed override 2019-02-09 13:31:50 +01:00
Daniel Marjamäki 38a30c953f AUTHORS: Add vpvahtis 2019-02-09 13:01:44 +01:00
Sebastian 36e174f8f3
donate-cpu-server.py: Add logging of uncaught exceptions (to file and console) (#1646)
Two logging handler are added. One just prints all output with at least INFO severity to the console. The other only prints ERROR severity and above to a rotating file. The file size is limited to 100 kB. Since one backup file is used that results in a maximum of 200 kB disk usage.
The log file is saved in the directory where the server script is.
Hopefully this way some issues can be found more easily.
Tested locally.
2019-02-09 12:41:02 +01:00
Daniel Marjamäki 979e196895 Restore Makefile 2019-02-09 09:32:34 +01:00
Daniel Marjamäki f45cecc303 Makefile: Set release mode 2019-02-09 09:31:27 +01:00
Sebastian a997d0b387
donate-cpu.py: Introduce version number for client script (#1654)
The version number is added to the result output so issues could be more easily reproduced and in the future if it is necessary to handle any specific version of the client by the server in a special way (for example because it is erroneous) this is possible now.
2019-02-09 09:27:54 +01:00
Sebastian fc7494c832 std.cfg: Add support for std::map::count() (#1655)
Reference: https://en.cppreference.com/w/cpp/container/map/count
2019-02-09 09:20:42 +01:00
Daniel Marjamäki 502d5e9142 1.87: Set versions 2019-02-09 09:07:27 +01:00
Daniel Marjamäki 450df421f6 Updated the AUTHORS file 2019-02-09 08:59:05 +01:00
Daniel Marjamäki 9337af8965 astyle formatting 2019-02-09 08:48:10 +01:00
Paul Fultz II 797eccc203 Fix possible out of bounds access on arguments (#1652)
* Fix possible outbounds access on arguments

* Log a warning when the arguments mismatch

* Format
2019-02-09 08:47:36 +01:00
IOBYTE 155e4ce912 Fixed #8971 ("(debug) Unknown type 'x'." using alias in class members) (#1653)
* Fixed #8971 ("(debug) Unknown type 'x'." using alias in class members)

* template simplifier: partial fix for #8972

Add support for multi-token default template parameters.

* template simplifier: fix for #8971

Remove typename outside of templates.
2019-02-09 08:34:59 +01:00
Daniel Marjamäki 851b537d15 createrelease: update copyright sed command 2019-02-09 07:42:12 +01:00
Daniel Marjamäki bd7790fd8c Update copyright year 2019-02-09 07:24:06 +01:00
Daniel Marjamäki 7ac43eda79 lupdate gui.pro 2019-02-09 07:20:17 +01:00
orbitcowboy 8819743443 wxwidgets.cfg: Added support for more interfaces. 2019-02-08 20:47:14 +01:00
orbitcowboy 8d379a8f31 wxwidgets.cfg: Added support for more interfaces. 2019-02-08 20:27:12 +01:00
Daniel Marjamäki 9221570cfc createrelease: updated self-check command 2019-02-08 19:47:56 +01:00
orbitcowboy 7be56565f3 wxwidgets.cfg: Added support for wxSlider::SetMax() and wxSlider::SetMin(). 2019-02-08 17:16:29 +01:00
orbitcowboy 0b19d17ed3 wxwidgets.cfg: Added support for more interfaces. 2019-02-08 13:12:01 +01:00
orbitcowboy 91fbc859b3 wxwidgets.cfg: Added support for more interfaces. 2019-02-08 12:03:17 +01:00
orbitcowboy b0496cc192 wxwidgets.cfg: Added support for more interfaces. 2019-02-08 11:56:29 +01:00
versat ed4038b1df donate-cpu.py: Minor cleanup: Move `--library=gnu` to `libraries` variable 2019-02-08 11:19:51 +01:00
amai2012 3d968b08da Refactor script, make it more verbose about XML formatting 2019-02-07 20:00:16 +01:00
amai2012 ad9d580e5f Reformat runastyle using https://arachnoid.com/python/python_programs/beautify_bash.py 2019-02-07 19:57:01 +01:00
versat 5e7f491bd4 qt.cfg: Add support for qFatal() which aborts the program
Reference: https://doc.qt.io/qt-5/qtglobal.html#qFatal
2019-02-07 15:00:54 +01:00
Paul Fultz II d7c20b15e7 Fix FP with const argument when doing a variable and cast (#1649) 2019-02-07 14:59:09 +01:00
versat bdbaaff361 qt.cfg: Add support for function QMenu::addAction
Reference: https://doc.qt.io/qt-5/qmenu.html#addAction
daca@home currently reports this as the Qt function which was most often missing a configuration.
2019-02-07 14:24:46 +01:00
Sebastian 5fe7aad5e3
qt.cfg: Add configuration and tests for macro Q_NULLPTR (#1651)
Qt defines `Q_NULLPTR` with `nullptr` if it is available, otherwise with `NULL`.
Since there seems to be no (sane) way to configure it the same way in the library configuration it is just defined with `NULL`.
2019-02-07 12:27:25 +01:00
Sebastian 3b98f08ac2 runastyle: Fix wildcard expansion happening too soon (#1650)
At least under Windows with Cygwin i see a problem.
For lines like `formatCplusplus lib/*.cpp` the wildcard is replaced by ONE filename before the function is called.
This results in only one file being formatted in the corresponding directory.
The fix seems quite simple. Just use quotes for all function parameters like this: `formatCplusplus "lib/*.cpp"`
The wildcard is preserved and only extended in the function body, so all matching files get formatted.
2019-02-07 08:52:20 +01:00
IOBYTE 7025254c26 Fixed #8969 (syntax error: template) (#1647)
Fixed template detection to handle multi-token template parameters.
2019-02-07 08:50:49 +01:00
rikardfalkeborn aa730f45c6 Add regression test for #7714 (#1648)
Ticket #7714 was fixed in ea215c3b7b.
Add a regression test to make sure it stays fixed.
2019-02-07 08:49:55 +01:00
Daniel Marjamäki 633e8632f5 bump simplecpp 2019-02-06 16:26:59 +01:00
Sebastian 55ce6d2073
qt.cfg: Add support and tests for QFile::exists function (#1645)
Found by daca@home
2019-02-06 13:23:05 +01:00
amai2012 b6681c2a2e Improve some function properties 2019-02-05 21:30:30 +01:00
amai2012 22611c4b74 Add getopt_long,getopt_long_only to gnu.cfg 2019-02-05 21:29:56 +01:00
Daniel Marjamäki 14a312e310 useInitializationList: Skip warning when rhs is a multi line lambda. For readability it might be better to have assignments in constructor in this case. 2019-02-05 19:53:10 +01:00
Sebastian 1ef13f8b06 python.cfg: Add macros DL_IMPORT and DL_EXPORT (#1644)
daca@home issues `unknownMacro` errors for these (deprecated) macros.
2019-02-05 16:12:34 +01:00
versat 06d16622e9 donate-cpu.py: Use SDL library configuration when applicable
Tested locally.
Searching for `#include <SDL.h>` does not always work. Sometimes `#include "SDL.h"` is used, but for now lets see for how many packages it works this way.
2019-02-05 13:38:42 +01:00
Sebastian 92d492e35d
donate-cpu-server.py: Limit number of functions shown in checkLibrary reports (#1641)
The checkLibraryFunction report is currently about 15 MB in size, lists more than 140000 functions and takes a long time to be generated.
Limiting the functions that are shown should save bandwidth, time and other resources on the server (and client that downloads the report).
Tested locally.
2019-02-05 10:39:40 +01:00
IOBYTE 1faae52d06 Fixed #8960 ("(debug) Unknown type 'x'." with alias in template class alias) (#1643)
* Fixed #8960 ("(debug) Unknown type 'x'." with alias in template class alias)

This commit adds non-template type alias support to the template
simplifier.  Only relatively simple type aliases are supported at this
time. More complex types will be added later.

--debug-warnings will show unsupported type aliases.

Type alias support will be removed from the symbol database in the
future.  Type alias tests have been removed from the symbol database
tests.

* Add the changes.

* Fix codacy warning.

* Fix travis warnings.
2019-02-05 08:52:23 +01:00
amai2012 a8cb6fd1a1 Fixes and new interfaces 2019-02-05 07:37:10 +01:00
Daniel Marjamäki b7631b0390 Add more timers in tokenizer 2019-02-04 21:13:59 +01:00
amai2012 f3af8b508a Additions to python.cfg 2019-02-04 20:31:21 +01:00