Skip to content
Open
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
2 changes: 2 additions & 0 deletions cfg/qt.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2428,6 +2428,7 @@
<!-- bool QDir::exists() const -->
<function name="QDir::exists">
<noreturn>false</noreturn>
<pure/>
<returnValue type="bool"/>
<use-retval/>
<leak-ignore/>
Expand All @@ -2440,6 +2441,7 @@
<!-- bool QFile::exists() const -->
<function name="QFile::exists">
<noreturn>false</noreturn>
<pure/>
<returnValue type="bool"/>
<use-retval/>
<leak-ignore/>
Expand Down
5 changes: 5 additions & 0 deletions test/cfg/qt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ void ignoredReturnValue_QDir(const QString& dirname)
dir.entryList();
}

void assertWithSideEffect_QDir_exists(const char *path) { // #14720
QDir dir(path);
assert(dir.exists());
(void)dir;
}

void unusedVariable_QTransform()
{
Expand Down
Loading