Skip to content
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

qt.cfg: Fixed wrong function name #6247

Merged
merged 1 commit into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2896,8 +2896,8 @@
<!--int QRect::x () const -->
<!--int QRect::y () const -->
<!--int QSize::width () const -->
<!--int QSize::heigth () const -->
<function name="QRect::bottom,QRect::height,QRect::left,QRect::right,QRect::top,QRect::width,QRect::x,QRect::y,QSize::width,QSize::heigth">
<!--int QSize::height () const -->
<function name="QRect::bottom,QRect::height,QRect::left,QRect::right,QRect::top,QRect::width,QRect::x,QRect::y,QSize::width,QSize::height">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="int"/>
Expand Down
14 changes: 14 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@

#include <cstdio>

int ignoredReturnValue_QSize_height(const QSize &s)
{
// cppcheck-suppress ignoredReturnValue
s.height();
return s.height();
}

int ignoredReturnValue_QSize_width(const QSize &s)
{
// cppcheck-suppress ignoredReturnValue
s.width();
return s.width();
}

void unusedVariable_QTransform()
{
// cppcheck-suppress unusedVariable
Expand Down
Loading