qt.cfg: Added QList configuration

This commit is contained in:
Daniel Marjamäki 2017-04-23 20:41:34 +02:00
parent 07726c1037
commit 5eca129865
1 changed files with 76 additions and 61 deletions

View File

@ -123,30 +123,25 @@
</arg>
</function>
<!-- const QChar QString::at(int position) const -->
<function name="QString::at">
<function name="QList::at,QString::at">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- iterator QString::begin() -->
<function name="QString::begin">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- int QString::capacity() const -->
<function name="QString::capacity">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- const_iterator QString::cbegin() const -->
<function name="QString::cbegin">
<!-- iterator QList::..() -->
<function name="QList::begin,QList::end,QList::cbegin,QList::cend,QList::constBegin,QList::constEnd,QList::rbegin,QList::rend,QList::crbegin,QList::crend">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- const_iterator QString::cend() const -->
<function name="QString::cend">
<!-- iterator QString::..() -->
<function name="QString::begin,QString::end,QString::cbegin,QString::cend,QString::constBegin,QString::constEnd,QString::rbegin,QString::rend,QString::crbegin,QString::crend">
<noreturn>false</noreturn>
<use-retval/>
</function>
@ -158,7 +153,7 @@
</arg>
</function>
<!-- void QString::clear() -->
<function name="QString::clear">
<function name="QList::clear,QString::clear">
<noreturn>false</noreturn>
</function>
<!-- int QString::compare() const -->
@ -172,36 +167,24 @@
<not-uninit/>
</arg>
</function>
<!-- const_iterator QString::constBegin() const -->
<function name="QString::constBegin">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- const_iterator QString::constEnd() const -->
<function name="QString::constEnd">
<!-- bool QList::contains(const T &value) const -->
<!-- bool QList::startsWith(const T &value) const -->
<!-- bool QList::endsWith(const T &value) const -->
<function name="QList::contains,QList::startsWith,QList::endsWith">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="bool"/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- bool QString::contains(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<function name="QString::contains">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" default="Qt::CaseSensitive">
<not-uninit/>
</arg>
</function>
<!-- int QString::count() const -->
<function name="QString::count">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- bool QString::startsWith(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<!-- bool QString::endsWith(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<function name="QString::endsWith">
<function name="QString::contains,QString::startsWith,QString::endsWith">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="bool"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -209,10 +192,40 @@
<not-uninit/>
</arg>
</function>
<!-- bool QString::indexOf(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<!-- int QList::count() const -->
<!-- int QList::length() const -->
<!-- int QList::size() const -->
<!-- int QString::count() const -->
<!-- int QString::length() const -->
<!-- int QString::size() const -->
<function name="QList::count,QList::length,QList::size,QString::count,QString::length,QString::size">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="signed int"/>
</function>
<!-- bool QList::empty() const -->
<!-- bool QList::isEmpty() const -->
<!-- bool QString::isEmpty() const -->
<!-- bool QString::isNull() const -->
<function name="QList::empty,QString::isEmpty,QString::isNull">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="bool"/>
</function>
<!-- int QList::indexOf(const T &) const -->
<function name="QList::indexOf">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="signed int"/>
<arg nr="1">
<not-uninit/>
</arg>
</function>
<!-- int QString::indexOf(const QString &str, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<function name="QString::indexOf">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="signed int"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -220,25 +233,28 @@
<not-uninit/>
</arg>
</function>
<!-- bool QString::isEmpty() const -->
<function name="QString::isEmpty">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- bool QString::isNull() const -->
<function name="QString::isNull">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- bool QString::isRightToLeft() const -->
<function name="QString::isRightToLeft">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- bool QString::lastIndexOf(const QString &str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<!-- int QList::lastIndexOf(const T &value, int from = -1) const -->
<function name="QList::lastIndexOf">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="signed int"/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" default="-1">
<not-uninit/>
</arg>
</function>
<!-- int QString::lastIndexOf(const QString &str, int from = -1, Qt::CaseSensitivity cs = Qt::CaseSensitive) const -->
<function name="QString::lastIndexOf">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="signed int"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -257,11 +273,7 @@
<not-uninit/>
</arg>
</function>
<!-- int QString::length() const -->
<function name="QString::length">
<noreturn>false</noreturn>
<use-retval/>
</function>
<!-- QList<T> QList::mid(int pos, int length = -1) const -->
<!-- QString QString::mid(int position, int n = -1) const -->
<function name="QString::mid">
<noreturn>false</noreturn>
@ -289,16 +301,6 @@
<not-uninit/>
</arg>
</function>
<function name="QString::startsWith">
<noreturn>false</noreturn>
<use-retval/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" default="Qt::CaseSensitive">
<not-uninit/>
</arg>
</function>
<function name="QString::toInt">
<noreturn>false</noreturn>
<use-retval/>
@ -331,6 +333,7 @@
<function name="erase" action="erase"/>
<function name="insert" action="insert"/>
<function name="isEmpty" yields="empty"/>
<function name="length" yields="size"/>
<function name="size" yields="size"/>
<function name="swap" action="change"/>
</size>
@ -343,9 +346,21 @@
<function name="constEnd" yields="end-iterator"/>
</access>
</container>
<container id="qtList" startPattern="QList &lt;" inherits="qtContainer" opLessAllowed="true">
<type string="std-like"/>
<size>
<function name="resize" action="resize"/>
</size>
<access indexOperator="array-like">
<function name="at" yields="at_index"/>
<function name="front" yields="item"/>
<function name="back" yields="item"/>
</access>
</container>
<container id="qtString" startPattern="QString" endPattern="" inherits="qtContainer" opLessAllowed="true">
<type string="std-like"/>
<size>
<function name="isNull" yields="empty"/>
<function name="resize" action="resize"/>
</size>
<access indexOperator="array-like">