qt5base-lts/tests/auto/corelib/tools
Giuseppe D'Angelo 594abde1a2 Enforce that statically allocated array-like containers have 0 capacity
It has been the case for both QStringLiteral and QByteArrayLiteral
since Qt 5.0, and Q_ARRAY_LITERAL since Qt 6.0.

Since it's definitely surprising, add a note in the docs, which
is "somehow" consistent with the interpretation of capacity as
the biggest possible size before we reallocate. Since it's 0,
any manipulation of the size will cause a reallocation.
(Alternatively: the capacity() is for how many elements memory was
requested from the free store. No memory was allocated, so 0...)

Task-number: QTBUG-84069
Change-Id: I5c7d21a22d1bd8b8d9b71143e33d537ca0224acd
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2020-05-14 14:19:47 +02:00
..
collections Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
containerapisymmetry Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qalgorithms Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qarraydata Enforce that statically allocated array-like containers have 0 capacity 2020-05-14 14:19:47 +02:00
qbitarray Merge remote-tracking branch 'origin/dev' into merge-dev 2020-01-24 13:17:33 +01:00
qcache Change qHash() to work with size_t instead of uint 2020-04-09 20:03:25 +02:00
qcommandlineparser Merge remote-tracking branch 'origin/5.15' into dev 2020-05-04 17:38:40 +02:00
qcontiguouscache Extend QContiguousCache to use qsizetype for size and indices 2020-03-14 10:36:47 +01:00
qcryptographichash Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qeasingcurve Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qexplicitlyshareddatapointer Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qflatmap Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qfreelist Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qhash Implement emplace() for QHash and QMultiHash 2020-04-09 20:03:32 +02:00
qhashfunctions QChar: make std::hash'able 2020-05-05 18:58:26 +02:00
qline Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qlinkedlist Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qmacautoreleasepool Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qmakearray Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qmap Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
qmargins Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qmessageauthenticationcode Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qoffsetstringarray Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qpair Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qpoint Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qpointf Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qqueue Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qrect Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qringbuffer Regenerate projects one last time before merge 2020-02-12 17:30:49 +00:00
qscopedpointer Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qscopedvaluerollback Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qscopeguard Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
qset Change qHash() to work with size_t instead of uint 2020-04-09 20:03:25 +02:00
qsharedpointer Cleanup code where we mixed QHash and QMultiHash iterator code 2020-02-03 17:43:30 +01:00
qsize Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qsizef Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qstl Regenerate tests/auto/corelib/tools 2019-11-12 17:26:27 +00:00
qtaggedpointer Change QTaggedPointer API to be more similar to other smart pointers in Qt 2020-03-19 19:01:31 +01:00
qtimeline Merge remote-tracking branch 'origin/dev' into wip/cmake 2020-01-29 16:57:27 +01:00
qvarlengtharray Use qsizetype for size related methods in QVarlengthArray 2020-03-14 10:36:56 +01:00
qvector Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
qversionnumber Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
.prev_CMakeLists.txt Introduce helper class QTaggedPointer 2020-03-17 10:01:04 +01:00
CMakeLists.txt Port more tests from tests/auto/corelib/tools to CMake 2020-04-29 22:48:45 +02:00
tools.pro Introduce helper class QTaggedPointer 2020-03-17 10:01:04 +01:00