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
chrchr-github
9291421840
Fix #11595 FN useStlAlgorithm with complex condition ( #4848 )
2023-03-04 11:58:12 +01:00
chrchr-github
491299048b
Amend fix for #11449 Function call not recognized ( #4838 )
2023-03-02 21:45:15 +01:00
chrchr-github
a0cc35e3fa
Remove simplifyQtSignalsSlots(), update qt.cfg ( #4807 )
2023-02-25 15:58:57 +01:00
chrchr-github
50c8a0dbe1
Fix #11553 pop_back on empty container is UB ( #4789 )
2023-02-24 01:10:19 +01:00
Oliver Stöneberg
8c527bf132
std.cfg: added support for more container methods ( #4780 )
...
* std.cfg: added support for `std::unordered_map::count()`
* std.cfg: added support for `std::multimap::count()`
* std.cfg: added support for `std::unordered_map::insert()`
* std.cfg: added support for `std::unordered_set::insert()`
* std.cfg: added support for `std::unordered_set::emplace()`
2023-02-11 10:48:17 +01:00
chrchr-github
2be1e36603
qt.cfg: add support for Q_EMIT ( #4786 )
2023-02-11 10:43:07 +01:00
chrchr-github
0dddba3bd6
Fix cfg for std::xstream::write() ( #4778 )
2023-02-08 08:59:13 +01:00
Tobias
608be24726
gnu.cfg: strcasestr wrong return type ( #4776 )
2023-02-07 23:17:25 +01:00
chrchr-github
d8323c367e
std.cfg: use-retval for container member functions ( #4766 )
2023-02-06 22:03:23 +01:00
Mateusz
7ae7ad60d8
Added cfg information about std::span ( #4762 )
...
* Added cfg information about std::span
* Add tests for span handling
* Add details about functions and tests fo std::span
* Add tests in dangingLifetimeContainerView for span
* Reduce c++ version from 20 to 2a
* Add checking if span is supported in std lib cfg checks
2023-02-05 18:10:08 +01:00
chrchr-github
7945b835e1
Add support for std::string_view::substr() ( #4729 )
2023-01-20 15:46:06 +01:00
Oliver Stöneberg
a8fd5cbaf4
added `entrypoint` to library configuration and got rid of hard-coded ones ( #4691 )
2023-01-18 20:52:33 +01:00
chrchr-github
f8f66aeea9
Improve std.cfg: std::addressof(), std::stringstream::str() ( #4710 )
...
* Improve std.cfg: std::addressof(), std::stringstream::str()
* Format
* Add <leak-ignore/>
2023-01-16 22:08:31 +01:00
chrchr-github
b29f111082
Improve qt.cfg: unreadVariable for macro parameter ( #4683 )
2023-01-07 23:29:47 +01:00
Oliver Stöneberg
0c95971c54
added .gitattributes and normalized files ( #4668 )
2022-12-30 21:33:45 +01:00
orbitcowboy
347c10db3b
posix.cfg: Improved configuration of mq_timedsend().
2022-12-22 11:58:32 +01:00
orbitcowboy
f5b9445767
posix.cfg: Added support for more posix_trace..() functions
2022-12-22 11:48:51 +01:00
orbitcowboy
3c57752c9b
posix.cfg: Added support for more posix_trace..() functions
2022-12-22 11:39:00 +01:00