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

QXmlStreamGrammar::spell causes unnecessary relocations

    XMLWordPrintable

Details

    Description

      The problem is that the object is of type array-of-pointers, well-known for causing relocations. While the solution would usually be trivial (use qOffsetStringArray), there are three complications here:

      • the variable is generated by qlalr, so the generator first needs to be fixed
      • the table contains nullptr entries (encoded as 0), which, when significant, cannot be handled by qOffsetStringArray
      • the header is included in two different TUs while qOffsetStringArray realy likes being a constexpr auto static.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes