Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-104167

[spike] Create a policy for [[nodiscard]] on ctors

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Other
    • None

    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

          Activity

            People

              cnn Qt Core & Network
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: