orbitcowboy
71212c7d66
std.cfg: Added support for invalidFunctionArg check to tgamma(). ( #5850 )
...
Reference: https://en.cppreference.com/w/cpp/numeric/math/tgamma
2024-01-06 14:59:43 +01:00
orbitcowboy
32cabecca9
Add support for InvalidFunctionArg lgamma() ( #5845 )
...
Reference: https://en.cppreference.com/w/cpp/numeric/math/lgamma
2024-01-05 23:34:08 +01:00
Oliver Stöneberg
028596f100
enabled and mitigated debug warnings in cfg tests ( #5840 )
2024-01-05 17:00:51 +01:00
orbitcowboy
950b285608
posix.cfg: Added support for strxfrm_l ( #5839 )
...
Reference:
-
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strxfrm_l.html
2024-01-05 16:41:28 +01:00
Philip Chimento
8ca93c983b
gtk.cfg: Add more definitions for assert macros ( #5830 )
...
In particular, the missing definition of `g_assert_nonnull()` can cause
false positives because it's not recognized as `assert(expr != NULL)` by
cppcheck.
2024-01-05 12:32:05 +01:00
chrchr-github
918eca635d
Fix #2767 FP resourceLeak (regression) / #12248 FP memleak / #12204 FP memleak ( #5723 )
2023-12-06 10:17:32 +01:00
Oliver Stöneberg
d1b42d0771
fixed #12056 - qt.cfg: implemented `Q_OBJECT` to get rid of `symbolDatabaseWarning` in selfcheck ( #5533 )
2023-11-26 14:42:11 +01:00
orbitcowboy
b201ef26cb
windows.cfg: Improved configuration of OpenThread() ( #5653 )
2023-11-12 11:37:29 +01:00
orbitcowboy
f4df28d5ec
windows.cfg: Improved configuration for OpenProcess(). ( #5651 )
2023-11-11 14:08:21 +01:00
chrchr-github
67b61a0ab7
Fix #12134 false negative: passedByValue ( #5607 )
2023-10-31 19:08:08 +01:00
chrchr-github
41bd28c0b3
Fix #12087 Library: add Container::Action::FIND_CONST ( #5579 )
2023-10-20 21:22:06 +02:00
orbitcowboy
16c5a11786
posix.cfg: Warn in case the return value of localtime() is ignored. ( #5555 )
2023-10-14 16:59:42 +02:00
chrchr-github
f56677a99d
Fix #11857 FP constParameterReference with std::map ( #5551 )
2023-10-13 18:08:40 +02:00
Daniel Marjamäki
cc44966fb5
std.cfg: remove wrong macro replacements for UINT32_C etc. ( #5527 )
...
The replacements should be platform dependent.
2023-10-08 14:44:07 +02:00
orbitcowboy
e9c39c124a
windows.cfg: Fix wrong FlushConsoleInputBuffer configuration ( #5526 )
...
After flushing, the function returns. Before it was configured to
not-return.
A proper regression test was added.
2023-10-07 20:05:43 +02:00
orbitcowboy
1d30b617c1
windows.cfg: Fixed wrong configuration of GetModuleHandle(A|W)-functions ( #5525 )
...
This fixes a FP: `Variable 'path' can be declared as const array
[constVariable]`
The reason was the wrong direction attribute of GetModuleHandle()
2023-10-07 13:59:01 +02:00
Andy Holmes
8ac7590212
gtk: add g_file_info_get_* exceptions ( #5502 )
...
These are annotated as `(transfer none)`.
2023-10-03 10:36:55 +02:00
orbitcowboy
1b3fa2af88
Added floating point categories to handle the return value from fpclassify() ( #5501 )
...
Reference: https://en.cppreference.com/w/cpp/numeric/math/FP_categories
2023-10-01 23:51:06 +02:00
Oliver Stöneberg
4af2f991c2
removed unused `daca.cfg` ( #5467 )
...
It appears this file was never used. And we shouldn't. Although this
will help with reducing warning and improving coverage in daca it will
not improve the analysis for the user. It might also mask issues.
2023-09-20 14:46:12 +02:00
Andy Holmes
da09580dde
gtk.cfg: add G_DEFINE_QUARK() ( #5464 )
2023-09-20 11:58:19 +02:00
Oliver Stöneberg
5eb1750adb
moved some standard stuff from `avr.cfg` to `std.cfg` ( #5421 )
2023-09-13 10:44:01 +02:00
Valentin Batz
078e967ab2
qt library: Make Q_PROPERTY a variadic macro to avoid preprocessorErrorDirective ( #5370 )
...
Treat Q_PROPERTY as variadic macro to avoid preprocessorErrorDirective
with associative container templates itroducing a "," like for example
`QHash<QString, int>`. Using templates is totally fine in the context of
a moc compiler.
The macro Q_PROPERTY is defined as variadic in
qobjectdefs.h/qtmetaobject.h when not compiling using the moc compiler.
See following references:
* For Qt 5.15
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qobjectdefs.h?h=5.15#n104
* For Qt 6.6
https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qtmetamacros.h?h=6.6#n5
2023-08-26 00:36:47 +02:00
Anton Lindqvist
73b9442edd
Fix constParameterPointer regression ( #5361 )
...
Commit 73251544a
("Fix #11842 FN constParameterPointer with library
function (#5257 )") most likely introduced a regression for (C) function
pointers passed to functions provided by the standard library that
cppcheck has knowledge about.
2023-08-23 10:33:01 +02:00
chrchr-github
725c431ecc
Fix #11881 FP returnStdMoveLocal / Fix FP incorrectStringBooleanError / Support std::string::starts/ends_with() ( #5347 )
2023-08-21 10:43:54 +02:00
chrchr-github
824f89514a
Add test for #10350 , fix arg direction in windows.cfg ( #5328 )
2023-08-14 17:25:00 +02:00
chrchr-github
23deadb370
Fix #11866 FN memleak when pointer is converted to bool ( #5306 )
2023-08-10 15:38:12 +02:00
chrchr-github
5ea1bca99f
Fix argument direction in windows.cfg, missing Qt macros ( #5302 )
2023-08-08 22:55:55 +02:00
chrchr-github
73251544a4
Fix #11842 FN constParameterPointer with library function ( #5257 )
2023-08-05 18:48:43 +02:00
Tobias
f10851dc37
posix.cfg: erand48/nrand48/jrand48 fixed argument direction ( #5253 )
2023-07-27 07:50:46 +02:00
chrchr-github
709fec88f9
Revert "Fix #11765 FN: minsize not checked for string literal, buffer… ( #5235 )
...
… access out of bounds not found (#5154 )"
This reverts commit 9ad18f51af
.
2023-07-11 22:19:01 +02:00
chrchr-github
9ad18f51af
Fix #11765 FN: minsize not checked for string literal, buffer access out of bounds not found ( #5154 )
2023-07-08 14:46:32 +02:00
Daniel Marjamäki
977e1320d7
Add zephyr.cfg ( #5201 )
2023-06-27 13:34:58 +02:00
chrchr-github
6c750d9ae9
Fix #11789 FP knownConditionTrueFalse with std::vector::size() ( #5184 )
...
There is special handling for `size_t` in
`ValueType::fromLibraryType()`, which gets preempted if it is also
configured as a podtype.
2023-06-23 20:31:25 +02:00
chrchr-github
8f6b0b41e7
Simplify qt.cfg, wxwidgets.cfg ( #5166 )
2023-06-17 17:04:14 +02:00
chrchr-github
127a66d291
Move to size category
2023-06-09 16:53:23 +02:00
chrchr
e5616c7c00
Undo
2023-06-09 16:53:23 +02:00
chrchr
55f34e2681
Extend XML schema
2023-06-09 16:53:23 +02:00
chrchr-github
022fcb3be1
Handle const, noreturn, return type
2023-06-09 16:53:23 +02:00
chrchr-github
ac87c1174c
Revert "Remove redundant functions"
...
This reverts commit 4f124a57de5c761ac757ebed83d9f047ef4a1328.
2023-06-09 16:53:23 +02:00
chrchr-github
3f0999b015
Remove redundant functions
2023-06-09 16:53:23 +02:00
chrchr-github
bd6c5318ad
Detect container action and yield functions ( #5117 )
...
* Detect container action and yield functions
* Fix test
* Adapt getUseRetValType() to handle container yield functions
Add TODO
* Handle combined action/yield
* Add Yield::BUFFER
* Remove redundant functions
* Revert "Remove redundant functions"
This reverts commit 4f124a57de5c761ac757ebed83d9f047ef4a1328.
* Add Yield::AT_INDEX
* Add Yield::ITERATOR
* Simplify
2023-06-09 16:03:47 +02:00
chrchr-github
ec4267a2bd
Don't suggest const for smartptr::get() ( #5126 )
...
* Don't suggest const for smartptr::get()
* Fix test
* Fix merge
* get() doesn't change a smartpointer
* Parentheses
2023-06-07 20:45:48 +02:00
SChernykh
93595aeff0
Fixed `std::vector::data` return type ( #5116 )
...
This caused many `arithOperationsOnVoidPointer` false positives in my project which uses `std::vector<uint8_t>` in many places.
2023-06-05 20:47:42 +02:00
chrchr-github
f2976e5bb5
std.cfg: add support for smartptr member functions ( #5113 )
...
* std.cfg: add support for smartptr member functions
* Fix test
* Fix
2023-06-03 14:36:30 +02:00
chrchr-github
7c56514bd5
Fix #9104 reopened Improve check: missing virtual destructor ( #5110 )
...
* Fix #9104 reopened Improve check: missing virtual destructor
* Add support for missing container members
* Add more stuff
* Improve qt.cfg
* Improve wxwidgets.cfg, qt.cfg
2023-06-02 15:24:18 +02:00
chrchr-github
cf4334904c
Fix #11626 FN functionConst with non-dereferenceable pointer access ( #5074 )
...
* Partial fix for #11626 FN functionConst with non-dereferenceable pointer access
* Fix #11626 FN functionConst with non-dereferenceable pointer access
* Fix test
2023-05-28 19:42:47 +02:00
chrchr-github
100d17df4f
Fix #11681 FN constParameterPointer with std::vector ( #5000 )
2023-05-04 11:10:58 +02:00
chrchr-github
9cc56fb660
gtk.cfg: add G_BEGIN_DECLS /G_END_DECLS ( #4979 )
2023-04-18 22:28:53 +02:00
ericLemanissier
cf280f84d4
qt: fix Q_UNUSED macro defintion ( #4925 )
2023-04-01 16:33:50 +02:00
Mateusz Michalak
2d5cabed4b
Add std::*begin and std::*end cfg ( #4796 )
2023-03-09 17:06:53 +01:00