qt.cfg: Add interfaces with new ignoredReturnErrorCode warnings (#2885)

* qt.cfg: Add interfaces with new ignoredReturnErrorCode warnings

* Tweak xmllint configuration
This commit is contained in:
Georgy Komarov 2020-11-06 11:40:44 +03:00 committed by GitHub
parent 9cbb09076c
commit b75d0665a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 1 deletions

View File

@ -116,7 +116,13 @@
<element name="leak-ignore"><empty/></element>
</optional>
<optional>
<element name="use-retval"><empty/></element>
<element name="use-retval"><empty/>
<optional>
<attribute name="type">
<value>error-code</value>
</attribute>
</optional>
</element>
</optional>
<optional>
<element name="returnValue">

View File

@ -4590,6 +4590,17 @@
<use-retval/>
<const/>
</function>
<!-- QSqlDatabase https://doc.qt.io/qt-5/qsqldatabase.html -->
<!-- bool QSqlDatabase::commit() -->
<!-- bool QSqlDatabase::rollback() -->
<!-- bool QSqlDatabase::open() -->
<!-- bool QSqlDatabase::transaction() -->
<function name="QSqlDatabase::commit,QSqlDatabase::rollback,QSqlDatabase::open,QSqlDatabase::transaction">
<noreturn>false</noreturn>
<returnValue type="bool"/>
<use-retval type="error-code"/>
<leak-ignore/>
</function>
<!-- QSqlQuery https://doc.qt.io/qt-5/qsqlquery.html -->
<!-- void QSqlQuery::addBindValue(const QVariant &val, QSql::ParamType paramType = QSql::In) -->
<function name="QSqlQuery::addBindValue">
@ -4665,6 +4676,7 @@
<noreturn>false</noreturn>
<returnValue type="bool"/>
<leak-ignore/>
<use-retval type="error-code"/>
<arg nr="1" direction="in" default="">
<not-uninit/>
<not-bool/>
@ -4776,6 +4788,7 @@
<noreturn>false</noreturn>
<returnValue type="bool"/>
<leak-ignore/>
<use-retval type="error-code"/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>