Commit Graph

22244 Commits

Author SHA1 Message Date
Daniel Marjamäki 2600dee36c ForwardAnalyzer: Fix crash in cast '(T* &&)', the && does not have operands 2020-03-08 11:49:14 +01:00
Daniel Marjamäki 5ea01c5d60 Fix Cppcheck warning 2020-03-08 10:02:46 +01:00
Daniel Marjamäki 5376ba1701 AST: Throw validation exception if ternary operator is missing operands 2020-03-07 21:46:38 +01:00
Oliver Stöneberg 91beccb304
fixed some clang-tidy warnings in gui code (#2565) 2020-03-07 11:33:08 +01:00
amai2012 b795d30db6 Enable another zeroDivCond test which got fixed recently 2020-03-06 17:15:54 +01:00
orbitcowboy 4c2fd21d4e wxwidgets.cfg: Added support for more interfaces. 2020-03-04 20:53:47 +01:00
orbitcowboy 03309a47ae wxwidgets.cfg: Added support for more interfaces. 2020-03-04 20:43:53 +01:00
orbitcowboy 42e12bc310 wxwidgets.cfg: Added support for more interfaces. 2020-03-04 20:41:14 +01:00
orbitcowboy c8c3cc87c7 wxwidgets.cfg: Added support for more interfaces. 2020-03-03 21:12:43 +01:00
orbitcowboy 800b1f2277 wxwidgets.cfg: Added support for more interfaces. 2020-03-03 21:06:55 +01:00
orbitcowboy e73c13992a wxwidgets.cfg: Added support for more interfaces. 2020-03-03 20:56:29 +01:00
orbitcowboy 4f870d1c6f wxwidgets.cfg: Added support for more interfaces. 2020-03-03 20:51:35 +01:00
orbitcowboy f05c504440 Running astyle [ci skip] 2020-03-03 20:38:30 +01:00
orbitcowboy ed2720db05 wxwidgets.cfg: Added support for more interfaces. 2020-03-03 20:38:11 +01:00
Sebastian 6e74d6810a
cmake/compileroptions.cmake: Fix missing stack options under Cygwin (#2560)
testrunner fails with SEGFAULT when built with cmake under Cygwin.
This fix adds a compiler option to increase the stack size in the same
way as it is already done in the Makefile.
2020-03-03 18:37:49 +01:00
Dmitry-Me b61feff125 Improve test coverage for detecting invalid pointers 2020-03-02 19:01:27 +03:00
orbitcowboy 85a26802e3 Running astyle [ci skip] 2020-03-01 20:39:00 +01:00
orbitcowboy ea742267c6 wxwidget.cfg: Added support for more constants 2020-03-01 20:38:34 +01:00
Oliver Stöneberg 8949c7e569
added CMake option ENABLE_CHECK_INTERNAL (#2557) 2020-03-01 17:11:20 +01:00
Paul Fultz II 6ea4f60600
Enable valueFlowSubfunction for multiple parameters (#2550) 2020-03-01 16:46:20 +01:00
orbitcowboy 18a0944646 wxwidgets.cfg: Added more <not-bool/>-flags. 2020-02-29 12:23:08 +01:00
Sebastian b06f4d4189
gtk.cfg/cppcheck-cfg.rng: Add Gtk utility functions, enhance RNG file (#2563)
This adds/fixes some miscellaneous Gtk/Glib utility functions.
Reference:
https://developer.gnome.org/glib/stable/glib-Miscellaneous-Utility-Functions.html
For specifying pointers to pointers as return value types the
cppcheck-cfg.rng has been enhanced to allow this.
2020-02-29 12:11:02 +01:00
Daniel Marjamäki 5df6d5bc7c Tokenizer; Warn about unknown macro used in string concatenation 2020-02-28 21:52:01 +01:00
orbitcowboy bf781f79b6 wxwidgets.cfg: Added more <not-bool/>-tags. 2020-02-28 12:02:35 +01:00
Sebastian feb767a66b
donate_cpu_lib.py: Fix that timed out analyses are handled as crashes (#2561)
Sometimes it could happen that SIGSEGV is thrown when Cppcheck is killed
because of a timeout. Then the execution is wrongly handled as a crash
and debugged with gdb instead of marking it as timed out.
This fixes that issue by checking the time out before checking sig_num.
2020-02-28 08:12:10 +01:00
Sebastian f0e3f9e79a
gtk.cfg: Fix/enhance Gtk library configuration (g_abort and others) (#2558)
test/CMakeLists.txt: Fix missing INCONCLUSIVE for Gtk configuration test
2020-02-27 13:16:43 +01:00
Georgy Komarov 4e5a8fac4a
misra.py: Handle stdint.h essential types (#2555)
Add stdint.h essential types to misra.py checks. This will fix false
negatives for rules 10.6 and 10.8.
2020-02-27 11:28:48 +01:00
Daniel Marjamäki baa4cee70c Travis: Fixed Cppcheck warning 2020-02-27 10:51:34 +01:00
Daniel Marjamäki 38b570138f AST: Try to handle c++17 for properly 'for (auto [a,b]:c)' 2020-02-27 09:58:53 +01:00
orbitcowboy 73ded43e40 wxwidgets.cfg: Improved configuration for wxDateTime::SetXXX()-functions. 2020-02-27 08:33:26 +01:00
Daniel Marjamäki 84995485ea VarId: fixed varids for 'for (auto [x,y]: xy)' 2020-02-27 07:18:07 +01:00
orbitcowboy 5ddc1af5e6 wxwidgets.cfg: Added <not-bool/>-flag at more function args. 2020-02-26 16:57:21 +01:00
orbitcowboy d63991c677 wxwidgets.cfg: Added <not-bool/>-flag at more function args. 2020-02-26 16:47:20 +01:00
orbitcowboy c4e32e6703 wxwidgets.cfg: Added <not-bool/>-flag at more function args. 2020-02-26 16:16:06 +01:00
orbitcowboy a5ca3cb1f0 wxwidgets.cfg: Fixed FP for wxSizer::Add() 2020-02-26 16:10:10 +01:00
Oliver Stöneberg 1863ccb0a7
fixed Clang warnings about unused variables (#2554) 2020-02-26 14:52:43 +01:00
versat fbde4aa13a qt.cfg: Add configuration for function QString::chopped()
Reference: https://doc.qt.io/qt-5/qstring.html#chopped
2020-02-26 11:06:43 +01:00
Sebastian 8fd17546ad
qt.cfg: #9650: Fix missing configuration for QString.chop() (#2556)
chop() and also remove() change the size of a QString, so they have to
be added in the container configuration accordingly to avoid false
positives.
2020-02-26 10:53:03 +01:00
Sebastian fb36889d29
gtk.cfg: Fix syntax errors and false positives (#2552)
A missing definition for g_assert_cmp*() causes syntax errors if code
like g_assert_cmpint(a, ==, b); is encountered.
The function g_hash_table_iter_replace() does not have to be marked
with leak-ignore since the memory could be freed later if corresponding
functions are present in the GHashTable. Since we can not know if this
is the case we have to assume that the memory is freed to avoid false
positives. The same is true for g_hash_table_insert() and
g_hash_table_replace().
2020-02-26 10:33:23 +01:00
orbitcowboy b32a89924c wxwidgets.cfg: Added <not-bool/>-flag at more function args. 2020-02-25 21:48:15 +01:00
orbitcowboy 802ad00a2f wxwidgets.cfg: Added support for more interfaces. 2020-02-25 21:40:02 +01:00
Daniel Marjamäki e4937ed621 AST: Fixed wrong AST for cast '(std::vector<int>&&)s->second' 2020-02-25 21:05:49 +01:00
orbitcowboy e9937e3acb wxwidgets.cfg: Fixed recently introduced FP. 2020-02-25 20:23:20 +01:00
Daniel Marjamäki 7f2f7031e1 manual: updated chapter about inline suppressions 2020-02-25 19:59:21 +01:00
versat ab836b8b7d gui/projectfiledialog.ui: Fix warning about doubly used widget name 2020-02-25 13:53:59 +01:00
Rikard Falkeborn 73ee317866
donate_cpu: Fix timeout if multithreaded (#2510)
Highly inspired by https://stackoverflow.com/a/4791612.
2020-02-25 11:49:56 +01:00
orbitcowboy 131befecce wxwidgets.cfg: Added <not-bool/>-flag at more function args. 2020-02-24 15:57:00 +01:00
amai2012 88c69418ee
Try to fix software installation on ubuntu 2020-02-24 12:17:34 +01:00
orbitcowboy 3afd764e95 wxwidgets.cfg: Fixed FP for wxRadioBox::Enable() because of function overloading. 2020-02-24 09:06:47 +01:00
Rikard Falkeborn 9896dce7f2
checkuninitvar: Fix FN with c++ casts (#2549) 2020-02-23 19:53:17 +01:00