Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
5
-
Team B Foundation Sprint 55, Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65, Foundations Sprint 99, Foundation Sprint 100, Foundation Sprint 101, Foundations Sprint 102, Foundation Sprint 103, Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106
Description
Like constexpr, it ensures that no dynamic initialisation can take place, which means it doesn't interfere (as much) with program startup. Unlike constexpr, constinit objects aren't implicitly const. constinit therefore acts as a static assertion that an object doesn't require dynamic initialisation.
Attachments
Issue Links
- depends on
-
QTBUG-106649 Provide a Clazy fixit for marking statics/thread_locals as Q_CONSTINIT when possible
- Open
Gerrit Reviews
For Gerrit Dashboard: QTBUG-100486 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
429153,7 | WIP: QtCore: apply Q_CONSTINIT where possible | dev | qt/qtbase | Status: NEW | -2 | 0 |
401127,10 | Apply Q_CONSTINIT across the codebase | dev | qt/qtbase | Status: MERGED | +2 | 0 |
412091,2 | QKeySequence: constinit ALL the things | dev | qt/qtbase | Status: MERGED | +2 | 0 |
426264,2 | QStringConverter: add Q_CONSTINIT to function-level QBasicAtomic | dev | qt/qtbase | Status: MERGED | +2 | 0 |
426267,2 | QUnicodeTools: mark a test-only flag constexpr/constinit | dev | qt/qtbase | Status: MERGED | +2 | 0 |
426419,2 | QUnicodeTools: mark a test-only flag constexpr/constinit | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
426420,2 | QStringConverter: add Q_CONSTINIT to function-level QBasicAtomic | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
429858,8 | Apply Q_CONSTINIT where beneficial | dev | qt/qtbase | Status: MERGED | +2 | 0 |