Details
-
Task
-
Resolution: Unresolved
-
P2: Important
-
None
-
None
-
None
-
5
-
Foundation PM Prioritized
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).
Attachments
Issue Links
- blocks
-
QTBUG-104164 Apply [[nodiscard]] to ctors where useful [QtBase]
- Open
-
QTBUG-104168 Apply [[nodiscard]] to ctors where useful [QtDeclarative]
- Open
-
QTBUG-104169 Apply [[nodiscard]] to ctors where useful [QtConnectivity]
- Open
- relates to
-
QTBUG-104161 [spike] Find out whether all supported compilers support [[nodiscard]] on ctor, add macro if not
- In Progress