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

Modernise QT_DEPRECATRED(_X) mechanism - use [[deprecated]] internally

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 6.0
    • 6.x
    • Core: Other
    • None
    • 93dad2bf91d414a41c6e2c7db6c75171b4917d4d

    Description

      We have a platform-dependent macro expansion for QT_DEPRECATED(_X) when there's a C++14 attribute standardised [1].

      This is important for certain corner cases that are supported by [1] but not supported by platform-specific extentions: I stumbled upon an issue trying to deprecate an enum value, e.g.

      enum {
        NewValue,
        OldValue QT_DEPRECATED_X("foobar"),  // causes compile errors now
        OtherValue,
      };
      

      [1]: https://en.cppreference.com/w/cpp/language/attributes/deprecated

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cnn Qt Core & Network
            agolubev Andrei Golubev
            Maurice Kalinowski Maurice Kalinowski
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes