qt.cfg: Add/enhance missing configuration for functions of QString (#2174)

This commit is contained in:
Sebastian 2019-09-13 12:19:21 +02:00 committed by GitHub
parent 068b0b246c
commit 246ba265ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 208 additions and 0 deletions

View File

@ -1050,6 +1050,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<warn severity="style" alternatives="QString::fromLatin1" reason="Obsolete"/>
<arg nr="1" direction="in">
<not-uninit/>
@ -1065,6 +1066,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1079,6 +1081,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
@ -1093,6 +1096,7 @@
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
@ -1104,6 +1108,7 @@
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1117,6 +1122,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in"/>
</function>
<!-- QString QString::fromStdU16String(const std::u16string &str) // static -->
@ -1127,6 +1133,7 @@
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1138,6 +1145,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1152,6 +1160,7 @@
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1165,6 +1174,7 @@
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -1308,6 +1318,35 @@
<not-uninit/>
</arg>
</function>
<!-- QString QString::leftJustified(int width, QChar fill = QLatin1Char(' '), bool truncate = false) const -->
<function name="QString::leftJustified">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="QLatin1Char(' ')">
<not-uninit/>
</arg>
<arg nr="3" direction="in" default="false">
<not-uninit/>
</arg>
</function>
<!-- QStringRef QString::leftRef(int n) const -->
<function name="QString::leftRef">
<noreturn>false</noreturn>
<returnValue type="QStringRef"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- int QString::localeAwareCompare(const QString &other) const -->
<!-- int QString::localeAwareCompare(const QStringRef &other) const -->
<!-- int QString::localeAwareCompare(const QString &s1, const QStringRef &s2) // static -->
@ -1442,6 +1481,15 @@
<not-uninit/>
</arg>
</function>
<!-- void QString::push_back(const QString &other) -->
<!-- void QString::push_back(QChar ch) -->
<function name="QString::push_back">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- void QList::push_front(const T &value) -->
<!-- QStringList inherits from QList -->
<function name="QList::push_front,QStringList::push_front">
@ -1451,6 +1499,15 @@
<not-uninit/>
</arg>
</function>
<!-- void QString::push_front(const QString &other) -->
<!-- void QString::push_front(QChar ch) -->
<function name="QString::push_front">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QtMessageHandler qInstallMessageHandler(QtMessageHandler handler) -->
<function name="qInstallMessageHandler">
<noreturn>false</noreturn>
@ -1640,9 +1697,39 @@
<valid>0:</valid>
</arg>
</function>
<!-- QString QString::rightJustified(int width, QChar fill = QLatin1Char(' '), bool truncate = false) const -->
<function name="QString::rightJustified">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="QLatin1Char(' ')">
<not-uninit/>
</arg>
<arg nr="3" direction="in" default="false">
<not-uninit/>
</arg>
</function>
<!-- QStringRef QString::rightRef(int n) const -->
<function name="QString::rightRef">
<noreturn>false</noreturn>
<returnValue type="QStringRef"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QString QString::section(QChar sep, int start, int end = -1, SectionFlags flags = SectionDefault) const -->
<!-- QString QString::section(const QString & sep, int start, int end = -1, SectionFlags flags = SectionDefault) const -->
<!-- QString QString::section(const QRegExp & reg, int start, int end = -1, SectionFlags flags = SectionDefault) const -->
<!-- QString QString::section(const QRegularExpression &re, int start, int end = -1, QString::SectionFlags flags = SectionDefault) const -->
<function name="QString::section">
<noreturn>false</noreturn>
<returnValue type="QString"/>
@ -1686,6 +1773,34 @@
<not-uninit/>
</arg>
</function>
<!-- QString &QString::setRawData(const QChar *unicode, int size) -->
<!-- QString &QString::setUnicode(const QChar *unicode, int size) -->
<!-- QString &QString::setUtf16(const ushort *unicode, int size) -->
<function name="QString::setRawData,QString::setUnicode,QString::setUtf16">
<noreturn>false</noreturn>
<returnValue type="QString &amp;"/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void QString::shrink_to_fit() -->
<!-- void QString::squeeze() -->
<function name="QString::shrink_to_fit,QString::squeeze">
<noreturn>false</noreturn>
<returnValue type="void"/>
</function>
<!-- QString QString::simplified() const -->
<function name="QString::simplified">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<const/>
</function>
<!-- QStringList QString::split(const QString &sep, SplitBehavior behavior = KeepEmptyParts, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<!-- QStringList QString::split(QChar sep, SplitBehavior behavior = KeepEmptyParts, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<!-- QStringList QString::split(const QRegExp &rx, SplitBehavior behavior = KeepEmptyParts) const -->
@ -1719,6 +1834,26 @@
<not-uninit/>
</arg>
</function>
<!-- void QString::swap(QString &other) -->
<function name="QString::swap">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1"/>
</function>
<!-- CFStringRef QString::toCFString() const -->
<function name="QString::toCFString">
<noreturn>false</noreturn>
<returnValue type="CFStringRef"/>
<use-retval/>
<const/>
</function>
<!-- QString QString::toCaseFolded() const -->
<function name="QString::toCaseFolded">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<const/>
</function>
<!-- double QString::toDouble(bool * ok = 0) const -->
<function name="QString::toDouble">
<noreturn>false</noreturn>
@ -1739,6 +1874,13 @@
<arg nr="1" default="0" direction="out">
</arg>
</function>
<!-- QString QString::toHtmlEscaped() const -->
<function name="QString::toHtmlEscaped">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<const/>
</function>
<!-- int QString::toInt(bool *ok = Q_NULLPTR, int base = 10) const -->
<function name="QString::toInt">
<noreturn>false</noreturn>
@ -1814,6 +1956,27 @@
<use-retval/>
<const/>
</function>
<!-- std::u16string QString::toStdU16String() const -->
<function name="QString::toStdU16String">
<noreturn>false</noreturn>
<returnValue type="std::u16string"/>
<use-retval/>
<const/>
</function>
<!-- std::u32string QString::toStdU32String() const -->
<function name="QString::toStdU32String">
<noreturn>false</noreturn>
<returnValue type="std::u32string"/>
<use-retval/>
<const/>
</function>
<!-- std::wstring QString::toStdWString() const -->
<function name="QString::toStdWString">
<noreturn>false</noreturn>
<returnValue type="std::wstring"/>
<use-retval/>
<const/>
</function>
<!-- uint QString::toUInt(bool * ok = 0, int base = 10) const -->
<function name="QString::toUInt">
<noreturn>false</noreturn>
@ -1874,6 +2037,13 @@
<not-bool/>
</arg>
</function>
<!-- QVector<uint> QString::toUcs4() const -->
<function name="QString::toUcs4">
<noreturn>false</noreturn>
<!--<returnValue type="QVector&lt;uint&gt;"/> Currently not allowed by Relax-NG validation file -->
<use-retval/>
<const/>
</function>
<!-- QString QString::toUpper() const -->
<function name="QString::toUpper">
<noreturn>false</noreturn>
@ -1888,6 +2058,15 @@
<use-retval/>
<const/>
</function>
<!-- int QString::toWCharArray(wchar_t *array) const -->
<function name="QString::toWCharArray">
<noreturn>false</noreturn>
<returnValue type="int"/>
<const/>
<arg nr="1" direction="out">
<not-bool/>
</arg>
</function>
<!-- QString QString::trimmed() const -->
<function name="QString::trimmed">
<noreturn>false</noreturn>
@ -1903,6 +2082,35 @@
<not-uninit/>
</arg>
</function>
<!-- const QChar *QString::unicode() const -->
<function name="QString::unicode">
<noreturn>false</noreturn>
<returnValue type="const QChar *"/>
<use-retval/>
<const/>
</function>
<!-- const ushort *QString::utf16() const -->
<function name="QString::utf16">
<noreturn>false</noreturn>
<returnValue type="const ushort *"/>
<use-retval/>
<const/>
</function>
<!-- QString QString::vasprintf(const char *cformat, va_list ap) // static -->
<function name="QString::vsprintf">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QString & QString::vsprintf(const char * cformat, va_list ap) -->
<function name="QString::vsprintf">
<noreturn>false</noreturn>