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

dumpcpp skips namespace and creates syntaxes errors

XMLWordPrintable

    • Windows
    • 415da4185 (dev), b434bf90f (6.10), fcf528163 (6.9)

      Since Qt 6.9, dumpcpp generates syntaxically wrong CPP files (at least for Excel and Outlook).

       

      As you can see on the diff below, dumpcpp 6.9+ doesn't fully name the classes anymore, which leads to syntax errors as the compiler does not know what is a `Shape`. Manually changing it to `Excel::Shape` as it is done in Qt 6.8 will make it work.

       

      I have attached the generated files below. They have been generated with

      ```batch

      ./dumpcpp "C:/Program Files/Microsoft Office/root/Office16/excel.exe"

      ./dumpcpp "C:/Program Files/Microsoft Office/root/Office16/MSOUTL.OLB"

      ```

        1. dumpcpp-error.7z
          3.92 MB
          Rémi Ducceschi
        2. dumpcpp-excel-error.7z
          1.27 MB
          Rémi Ducceschi
        3. image-2025-06-03-11-59-53-089.png
          100 kB
          Rémi Ducceschi
        For Gerrit Dashboard: QTBUG-137347
        # Subject Branch Project Status CR V

            jbornema Joerg Bornemann
            remidu Rémi Ducceschi
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes