Skip to content

made all suppressions in cfg tests inline / added TODOs - #6154

Merged
orbitcowboy merged 1 commit into
cppcheck-opensource:mainfrom
firewave:cfg-bailout
Mar 22, 2024
Merged

made all suppressions in cfg tests inline / added TODOs#6154
orbitcowboy merged 1 commit into
cppcheck-opensource:mainfrom
firewave:cfg-bailout

Conversation

@firewave

@firewavefirewave commented Mar 19, 2024

Copy link
Copy Markdown
Collaborator

unmatchedSuppression was suppressed globally which obviously has the effect that we got no feedback when an expected warning was not being reported.

@firewave

firewave commented Mar 19, 2024

Copy link
Copy Markdown
CollaboratorAuthor

I broke this in #5840 by not thinking about the implications of globally suppressing unmatchedSuppression.

I will look into the TODOs and file tickets later.

@firewavefirewave changed the title made all suppressions in cfg tests inline / added TODOs [skip ci]made all suppressions in cfg tests inline / added TODOsMar 19, 2024
Comment threadtest/cfg/qt.cpp Outdated
// TODO cppcheck-suppress unreadVariable
QRegion a;
// cppcheck-suppress unreadVariable
// TODO cppcheck-suppress unreadVariable

@firewavefirewaveMar 19, 2024

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment threadtest/cfg/qt.cpp Outdated
void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion &region, const Qt::FillRule fillRule)
{
// cppcheck-suppress unreadVariable
// TODO cppcheck-suppress unreadVariable

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment threadtest/cfg/qt.cpp Outdated

printf(QT_TR_NOOP("Hi"));

// cppcheck-suppress checkLibraryFunction

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was fixed by #5960.

Comment threadtest/cfg/std.cpp
{
(void)lgamma(d);
// cppcheck-suppress invalidFunctionArg
// TODO cppcheck-suppress invalidFunctionArg

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added in #5845 and was never detected. @orbitcowboy

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like !0.0: doesn't work, e.g. log() has <valid>4.94066e-324:</valid>.

Comment threadtest/cfg/std.cpp Outdated
void unusedAllocatedMemory_std_free()
{
//cppcheck-suppress unusedAllocatedMemory
//TODO cppcheck-suppress unusedAllocatedMemory

Copy link
Copy Markdown
CollaboratorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added in #5861 but was never detected. @chrchr-github

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

I have no idea what is going on with windows.cpp yet. Will take another look later.

@firewave

Copy link
Copy Markdown
CollaboratorAuthor

I have no idea what is going on with windows.cpp yet. Will take another look later.

I still do not get what is going on there. I think we should merge this ASAP so we do not regress any further and look into it afterwards.

I also want to get #6153 merged first.

@firewave
firewave marked this pull request as ready for review March 21, 2024 23:24
@orbitcowboy
orbitcowboy merged commit 6e6b203 into cppcheck-opensource:mainMar 22, 2024
@firewave
firewave deleted the cfg-bailout branch March 22, 2024 08:02
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@firewave@chrchr-github@orbitcowboy