Commit Graph

26624 Commits

Author SHA1 Message Date
Oliver Stöneberg f16ffd88e9
deprecate non-`native` platform being used by default in Windows builds ()
* deprecate non-`native` platform being used by default in Windows builds

* test-helloworld.py: avoid deprecation warnings
2023-01-27 10:46:48 +01:00
Oliver Stöneberg ea617553a6
made platforms file validation stricter / added missing `bool` elements () 2023-01-27 08:34:12 +01:00
chrchr-github 7eb1da9ffc
Fix debug: simplifyUsing: unmatched body end () 2023-01-27 08:19:32 +01:00
Oliver Stöneberg 1d3955bd92
renamed some files in the `test` folder () 2023-01-27 08:18:32 +01:00
chrchr-github 3ccc0adbca
Fix checkLibraryFunction with overloaded method / inconsistent reporting of checkLibraryNoReturn () 2023-01-26 22:29:49 +01:00
Oliver Stöneberg fd15811215
de-coupled `--check-library` from `information` severity and other dependencies () 2023-01-26 22:28:04 +01:00
chrchr-github ca0c13e27d
Fix crash in iscpp11init_impl() () 2023-01-26 22:25:49 +01:00
Oliver Stöneberg bea6aec2b2
extracted `ValueFlow::Value` to `vfvalue.{cpp|h}` () 2023-01-26 22:23:22 +01:00
chrchr-github b5a06d045e
Fix debug: CheckClass::isMemberVar found used member variable 'x' with varid 0 (inconclusive) () 2023-01-26 22:19:51 +01:00
chrchr-github a0f51d1e21
Improve <type-checks><unusedvar> error message () 2023-01-26 22:18:55 +01:00
Oliver Stöneberg a0b1285f4a
added CMake option `BUILD_CORE_DLL` to build lib as `cppcheck-core.dll` with Visual Studio () 2023-01-26 22:13:07 +01:00
Robert Reif c3aa0940be
fix truncation of token flags () 2023-01-26 22:11:37 +01:00
chrchr-github 3a8d9b8c87
Fix FP CastIntegerToAddressAtReturn with ternary operator () 2023-01-26 22:09:55 +01:00
Oliver Stöneberg e5572835c0
fixed `platforms` lookup / set proper platform type for `unix32-unsigned` and `unix64-unsigned` / copy `platforms` in CMake () 2023-01-26 22:05:40 +01:00
chrchr-github b12aebc817
Fix FN (style) Condition '...' is always true, add test for () 2023-01-26 22:03:12 +01:00
chrchr-github 84fdc08853
Fix internalAstError with chain of ternary operators () 2023-01-26 20:12:39 +01:00
chrchr-github c50339804b
Fix internalAstError with switch/case () 2023-01-26 20:11:45 +01:00
Oliver Stöneberg 58de191b99
triage_version.py: specify `--platform=native` / small cleanup () 2023-01-26 20:06:12 +01:00
Oliver Stöneberg 41849b1a78
generate `*.vcxproj` file lists with `dmake` () 2023-01-21 11:55:36 +01:00
Oliver Stöneberg 38abeccd24
added command-line option `--disable=<id>` to disable individual checks () 2023-01-21 10:39:44 +01:00
chrchr-github 7945b835e1
Add support for std::string_view::substr() () 2023-01-20 15:46:06 +01:00
Oliver Stöneberg 99acd3145e
bumped simplecpp to 9dc2c3df53 () 2023-01-20 15:41:32 +01:00
Oliver Stöneberg a8fd5cbaf4
added `entrypoint` to library configuration and got rid of hard-coded ones () 2023-01-18 20:52:33 +01:00
chrchr-github 3076f9def1
Fix Function call not recognized with extra parentheses / FP nullPointer () 2023-01-18 20:38:37 +01:00
chrchr-github dfd3e8ac55
Partial fix for : No implicit int in C++ mode () 2023-01-18 20:37:00 +01:00
Oliver Stöneberg e205550bdb
donate-cpu-server.py: only include packages which crash on head in the crash report package list () 2023-01-18 20:19:31 +01:00
Daniel Marjamäki f8c4354d2e Cleanup *.ctu-info files that are not needed anymore after analysis 2023-01-18 17:32:14 +01:00
chrchr-github 7515305581
Add test for () 2023-01-18 17:30:22 +01:00
chrchr-github 0b62c73ff0
Fix spurious variable declaration with unknown macro and using () 2023-01-18 17:11:41 +01:00
Oliver Stöneberg 25a6146ffa
checkother.cpp: removed stray `CheckUninitVar` object () 2023-01-18 17:10:35 +01:00
chrchr-github c4784a1552
Partial fix for internalAstError regressions (iscpp11init) () 2023-01-18 17:09:55 +01:00
chrchr-github 9cf934c10d
Improve handling of 'final' in class declaration () 2023-01-18 17:08:43 +01:00
Oliver Stöneberg 689dfd29c1
updated workflows to `jurplel/install-qt-action@v3` ()
* updated workflows to `jurplel/install-qt-action@v3`

* release-windows.yml: removed installation of unavailable `qthelp` module

* release-windows.yml: do not hard-code `tools_openssl_x64` version
2023-01-18 17:04:21 +01:00
Oliver Stöneberg c2de9843ca
donate_cpu_lib.py: use `try_retry()` in `__remove_tree()` () 2023-01-18 17:02:09 +01:00
Oliver Stöneberg 7876e1064f
valgrind.yml: actually fail the workflow when an error is detected () 2023-01-18 17:01:26 +01:00
Oliver Stöneberg c99c444877
triage_version.py: added `--no-quiet`, `--no-stderr` and `--no-stdout` for more granular output control () 2023-01-18 17:00:57 +01:00
chrchr-github dee2ad8756
Fix FP selfAssignment () 2023-01-18 16:59:56 +01:00
Oliver Stöneberg edbd4f6e81
printInfo.cmake: only print UI-related option if `BUILD_GUI` is specified () 2023-01-18 16:58:12 +01:00
chrchr-github a2fea3d9b4
Fix FP knownConditionTrueFalse with reassigned pointer () 2023-01-18 16:57:22 +01:00
chrchr-github 50d297b309
Enable useStlAlgorithm in selfcheck () 2023-01-17 20:48:26 +01:00
chrchr-github f8f66aeea9
Improve std.cfg: std::addressof(), std::stringstream::str() ()
* Improve std.cfg: std::addressof(), std::stringstream::str()

* Format

* Add <leak-ignore/>
2023-01-16 22:08:31 +01:00
chrchr-github 6e2cc450b8
Fix FN functionConst with access of smart pointer ()
* Fix  FNfunctionConst with access of smart pointer

* Simplify
2023-01-16 22:07:04 +01:00
Oliver Stöneberg 124668979c
replaced some `std::ostringstream` usage with `std::to_string()` () 2023-01-16 22:05:33 +01:00
chrchr-github a102ff3c2f
Fix FN unusedFunction / Fix FP unusedFunction () 2023-01-14 20:16:55 +01:00
chrchr-github a79dff15ab
Fix FP uninitvar with try/catch () 2023-01-14 20:14:38 +01:00
chrchr-github 7bbdc95f25
Fix FP constVariable / FP constParameter / FP danglingTempReference ()
* Fix  FP constVariable with range-based for /  FP constParameter with unused non-const range loop variable

* Fix ValueType /  FP danglingTempReference with auto

* Fix ValueType in range-based for

* Update symboldatabase.cpp
2023-01-11 22:04:06 +01:00
Armin Müller a77f0d9403
Typos found by running "codespell" () 2023-01-10 15:15:27 +01:00
chrchr-github 491721a6ff
Fix spurious variable declaration with unknown macro () 2023-01-09 16:11:26 +01:00
Oliver Stöneberg 8cc3e0b2ff
errortypes.h: use `enum class` instead of wrapping types into classes () 2023-01-08 19:31:54 +01:00
chrchr-github 911d610f2d
Fix FN unusedFunction when enum value with same name exists () 2023-01-08 14:30:42 +01:00