Commit Graph

23558 Commits

Author SHA1 Message Date
Daniel Marjamäki 9aa69661b5 More robust Token::findClosingBracket 2020-11-30 19:26:28 +01:00
Oliver Stöneberg c846c0fbdc
testclangimport.cpp: fixed potential nullptr dereference in parse() (#2927) 2020-11-30 18:46:48 +01:00
Daniel Marjamäki 8a1c16a560 Tokenizer: add daca debug messages when right angle brackets in templates are not handled well 2020-11-29 16:07:56 +01:00
Oliver Stöneberg 3eaa76e832
updated C/C++ keywords (#2926) 2020-11-29 15:01:29 +01:00
Oliver Stöneberg 873aa075b4
fixed excessive spawning of child processes / fixed potential zombie processes (#2924) 2020-11-29 14:59:09 +01:00
Daniel Marjamäki 7112f69d7b Fixed bug in fixAngleBrackets 2020-11-29 12:56:13 +01:00
Daniel Marjamäki e2debac882 Fix testcases 2020-11-29 08:46:42 +01:00
Daniel Marjamäki fd75837494 Tokenizer: Remove extra 'template' keywords 2020-11-28 21:57:06 +01:00
Daniel Marjamäki f42c104b0d Distinguish exprid and varid in --debug output 2020-11-28 15:41:07 +01:00
Daniel Marjamäki 5b89b179ec Detect syntax error when script is checked 2020-11-28 14:41:05 +01:00
Daniel Marjamäki af26697ceb AST: Generate proper AST for 'f = []() -> foo&& {}' 2020-11-28 06:53:46 +01:00
Daniel Marjamäki 484b68c550 astyle formatting 2020-11-28 05:52:35 +01:00
Daniel Marjamäki 01df6e23ef googletest.cfg: Added ASSERT_NO_THROW and EXPECT_NO_THROW 2020-11-27 17:04:43 +01:00
Daniel Marjamäki d383913e1b Attempt to fix crashes when variable valueType is nullptr. This can happen when decltype is used on unknown type 2020-11-27 16:49:25 +01:00
Daniel Marjamäki ad0eb6108b Attempt to fix crashes when variable valueType is nullptr. This can happen when decltype is used on unknown type 2020-11-27 16:45:26 +01:00
Daniel Marjamäki 809cec2b58 Fix crashes when Variable::valueType is nullptr, this can happen when decltype(unknown type) is used. 2020-11-27 12:07:15 +01:00
Wolfgang Stöggl 0bbd18f364
lib: Add condition for include externals/tinyxml2 (#2923)
Include externals/tinyxml2 in lib/CMakeLists.txt only if
USE_BUNDLED_TINYXML2 is ON, which is the default.
This is a follow-up commit to 8ac55a8
2020-11-27 09:57:12 +01:00
amai2012 99b31b9a20
Update Makefile
Fix include path
2020-11-26 22:47:57 +01:00
miltolstoy 5d299016f1
feat: analyze function side effects (#2901) 2020-11-26 17:34:42 +01:00
Daniel Marjamäki 1e8eb28390 Clang import: Fix null pointer dereference 2020-11-26 17:26:30 +01:00
orbitcowboy 0e8556e6ed Activated basic runtime checks for 'Debug'-testrunner builds with MSVS as described here: https://docs.microsoft.com/de-de/cpp/build/reference/rtc-run-time-error-checks?view=msvc-160 2020-11-26 09:29:59 +01:00
Daniel Marjamäki a05a20093a manual; tweaked introduction 2020-11-25 17:48:17 +01:00
longradix e96948cdd9
documentation updates (#2906) 2020-11-25 16:56:24 +01:00
Daniel Marjamäki 62284dabca astyle formatting 2020-11-24 22:03:30 +01:00
Daniel Marjamäki 96392aa212 Clang import: better handling of templates 2020-11-24 22:02:59 +01:00
Daniel Marjamäki aa9281515d Clang import: Handle LinkageSpecDecl 2020-11-24 19:34:37 +01:00
Daniel Marjamäki 788abfa8a4 Clang import: better handling of CXXMethodDecl in getSpelling 2020-11-24 19:20:30 +01:00
IOBYTE 43ce1607c7
fix a large number of valgrind warnings in testrunner (#2920)
Co-authored-by: Robert Reif <reif@FX6840>
2020-11-24 18:21:07 +01:00
Daniel Marjamäki f145ae967d run addon pytest scripts in github action because something fails on travis 2020-11-24 07:48:30 +01:00
IOBYTE 1ea89bcad8
add support for template constructors (#2911) 2020-11-24 07:21:37 +01:00
Daniel Marjamäki 22114e3266 Travis: Quick hack try to disable test temporarily that fails 2020-11-23 22:12:11 +01:00
Daniel Marjamäki b4db52bf61 Fixed #9860 (wrong ast for placement new 'new ( uBAR ? uBAR : sizeof ( T ) ) T') 2020-11-23 22:03:50 +01:00
Daniel Marjamäki 1fcc5c233d GUI: Tweak 'check unused templates' option text a bit 2020-11-23 20:25:19 +01:00
Daniel Marjamäki 4a2e082d85 Revert "GUI: restore default tab in ProjectFileDialog"
This reverts commit 39564c9e6c.
2020-11-23 20:18:06 +01:00
Daniel Marjamäki 39564c9e6c GUI: restore default tab in ProjectFileDialog 2020-11-23 19:27:14 +01:00
Daniel Marjamäki 208a4a4548 Check unused templates by default 2020-11-23 18:29:08 +01:00
Daniel Marjamäki 5dbdb90541 Travis: try to make travis happy by removing a python2 command 2020-11-23 18:22:39 +01:00
orbitcowboy c5ea020462 windows.cfg: Added support for more constants from winnt.h 2020-11-23 14:05:10 +01:00
orbitcowboy 1f856ebb71 windows.cfg: Added support for more constants from winnt.h 2020-11-23 13:55:12 +01:00
orbitcowboy 940350c792 windows.cfg: Added support for more constants from WinUser.h 2020-11-23 13:31:46 +01:00
orbitcowboy 32286f9360 windows.cfg: Added support for more interfaces 2020-11-23 13:29:22 +01:00
orbitcowboy 4d7f906748 windows.cfg: Added support for _iswctype(), which is obsolete according to https://docs.microsoft.com/en-us/cpp/c-runtime-library/obsolete-functions?view=msvc-160 2020-11-23 13:07:23 +01:00
Daniel Marjamäki f6e7a66f42 TestConstructors: Unremove a test case 2020-11-22 18:17:40 +01:00
Daniel Marjamäki 2cd8ea83a7 Fixed #9860 (unused template not removed properly by default) 2020-11-22 16:43:36 +01:00
orbitcowboy 28bc823264 windows.cfg: Added support for more interfaces. 2020-11-22 09:01:44 +01:00
Wolfgang Stöggl 8ac55a8534
Add find_package(tinyxml2) to CMake builds (#2691)
So far, the cmake files of Cppcheck needed to be patched in order to
use installed tinyxml2 instead of the bundled version of tinyxml2.
- Introduce the CMake option USE_BUNDLED_TINYXML2 with a default value
  of ON. This preserves the behavior as in the past and uses the
  bundled version under externals/tinyxml2 by default.
- Usage of the installed tinyxml2 version of a system can be enabled
  now using -DUSE_BUNDLED_TINYXML2=OFF as a cmake parameter.
- Some Linux distros do not install tinyxml2*.cmake files, which are
  required to find tinyxml2 using find_package().
  Try first using find_package(tinyxml2 QUIET) and if this fails, try
  again using find_library(tinyxml2_LIBRARY tinyxml2)
2020-11-22 08:57:07 +01:00
Paul Fultz II 4a8a78a925
Fix issue 10002: False positive: constParameter with reference to pointer (#2918) 2020-11-22 08:47:24 +01:00
Paul Fultz II bf00d521d7
Show which rules are being processed (#2916) 2020-11-22 08:46:50 +01:00
Wolfgang Stöggl ef31b70bf4
Update Qt version for release-windows to 5.15.2 (#2917)
Qt 5.15.2 has been released on 2020-11-20. This is the currently newest
patch release of the 5.15 LTS series.
- The update of Qt to version 5.15.2 fixes an issue with the index of
  Qt help files as reported upstream:
  https://bugreports.qt.io/browse/QTBUG-88342
2020-11-22 08:46:05 +01:00
orbitcowboy e26298e12d windows.cfg: Added support for more constants from WinError.h 2020-11-22 00:42:30 +01:00