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

expand use of Q_DECL_FINAL to seal types where appropriate

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • None
    • Core: Object Model
    • None

    Description

      In general types that aren't designed to be subclassed should be systematically sealed.

      Also using final helps the devirtualization machinery:
      https://hubicka.blogspot.ch/2014/08/devirtualization-in-c-part-5-asking.html
      (gcc -Wsuggest-final-types and -Wsuggest-final-methods)

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hoenir hoenir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes