qt5base-lts/tests/benchmarks/corelib
Marc Mutz 3a72496b5c tests: fix some -Wvolatile
C++20 deprecated compound volatile statements such as pre- and
post-increments, to stress that they're not atomic. So instead of

    volatile i;
    ~~~~;
    ++i;

you're now supposed to write

    volatile i;
    ~~~~;
    int j = i; // volatile load
    ++j;
    i = j; // volatile store

which matches more closely what hardware does.

Instead of fixing every use of volatile pre- or post-increment in this
fashion individually, and realising that probably a few more Qt
modules will have the same kind of code patterns in them, write
QtPrivate functions to do the job centrally.

Change-Id: I838097bd484ef2118c071726963f103c080d2ba5
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-07-28 17:50:09 +02:00
..
io QDirIterator: add nextFileInfo() 2021-07-28 15:16:42 +02:00
itemmodels Add QSortFilterProxyModel clear-filter benchmark 2021-04-25 13:25:01 +03:00
json Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
kernel Fix QMetaType API deprecation warning in benchmark 2021-04-26 10:59:32 +02:00
mimetypes Remove qmake project files for benchmarks 2021-02-01 21:14:01 +01:00
plugin Fix some warnings 2021-03-29 16:06:25 +02:00
text Add benchmarks for QString::number 2021-07-22 23:01:41 +02:00
thread tests: fix some -Wvolatile 2021-07-28 17:50:09 +02:00
time Make loop variables references in date benchmark 2021-04-27 15:34:50 +02:00
tools Add a benchmark for QSharedPointer 2021-07-27 14:58:41 +02:00
CMakeLists.txt Add QSortFilterProxyModel clear-filter benchmark 2021-04-25 13:25:01 +03:00