Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
5
-
ca86afb97 (master)
-
Foundation Sprint 84, Foundation Sprint 85
Description
QTBUG-104161 will give us the go to apply [[nodiscard]] (or a wrapper macro) to constructors. This ticket is about finding out on which kinds of ctors we'd want this attribute, and getting buy-in for that from the community (dev ML?).
Seeing the proliferation of [[nodiscard]] on almost all non-void-return functions, I wouldn't be surprised if the outcome is "all ctors" (at least the non-SMF¹ ones).
¹ SMF == Special Member Function
Attachments
Issue Links
- blocks
-
QTBUG-104164 Apply [[nodiscard]] to ctors where useful [QtBase]
-
- Closed
-
-
QTBUG-104168 Apply [[nodiscard]] to ctors where useful [QtDeclarative]
-
- Closed
-
-
QTBUG-104169 Apply [[nodiscard]] to ctors where useful [QtConnectivity]
-
- Closed
-
- relates to
-
QTBUG-104161 [spike] Find out whether all supported compilers support [[nodiscard]] on ctor, add macro if not
-
- Closed
-
-
QTBUG-114767 Add Q_NODISCARD_X and Q_NODISCARD_CTOR_X, wrapping [[nodiscard("reason")]]
-
- Closed
-