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

qdoc: Arguments for format-specific macros are lost

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 6.5.0 Beta1
    • 6.4
    • Build tools: qdoc
    • None
    • 8be8426091 (qt/qttools/dev) 8be8426091 (qt/tqtc-qttools/dev)
    • DaVinci 66, DaVinci 67

      If there are two definitions for a macro with parameters, for example:

      macro.hello.HTML    = "<p>Hi, \1</p>"
      macro.hello.DocBook = "<db:para>Hi, \1</db:para>"

      Then qdoc ends up in an inconsistent state when parsing

      /*!
        \page test.html
      
        \hello {world}
      */

      because it tries to read the arguments twice (for each macro) from the input stream, regardless of the selected output formats, and obviously fails on the second round.

        For Gerrit Dashboard: QTBUG-108219
        # Subject Branch Project Status CR V

            treinio Topi Reiniƶ
            treinio Topi Reiniƶ
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are 2 open Gerrit changes