-
Notifications
You must be signed in to change notification settings - Fork 1.5k
made all suppressions in cfg tests inline / added TODOs
#6154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I broke this in #5840 by not thinking about the implications of globally suppressing I will look into the TODOs and file tickets later. |
cfg tests inline / added TODOs [skip ci]cfg tests inline / added TODOs
test/cfg/qt.cpp
Outdated
| // TODO cppcheck-suppress unreadVariable | ||
| QRegion a; | ||
| // cppcheck-suppress unreadVariable | ||
| // TODO cppcheck-suppress unreadVariable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are most likely https://trac.cppcheck.net/ticket/12366.
test/cfg/qt.cpp
Outdated
| void unreadVariable_QRegion(const int x, const QRegion::RegionType type, const QPolygon &polygon, const QBitmap &bm, const QRegion ®ion, const Qt::FillRule fillRule) | ||
| { | ||
| // cppcheck-suppress unreadVariable | ||
| // TODO cppcheck-suppress unreadVariable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I filed https://trac.cppcheck.net/ticket/12529 about these.
test/cfg/qt.cpp
Outdated
|
|
||
| printf(QT_TR_NOOP("Hi")); | ||
|
|
||
| // cppcheck-suppress checkLibraryFunction |
There was a problem hiding this comment.
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.
| { | ||
| (void)lgamma(d); | ||
| // cppcheck-suppress invalidFunctionArg | ||
| // TODO cppcheck-suppress invalidFunctionArg |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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>.
test/cfg/std.cpp
Outdated
| void unusedAllocatedMemory_std_free() | ||
| { | ||
| //cppcheck-suppress unusedAllocatedMemory | ||
| //TODO cppcheck-suppress unusedAllocatedMemory |
There was a problem hiding this comment.
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
|
I have no idea what is going on with |
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. |
c7af6a2 to
236073c
Compare
unmatchedSuppressionwas suppressed globally which obviously has the effect that we got no feedback when an expected warning was not being reported.