Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-14988 Documentation Tool chain
  3. QTBUG-611

qdoc does not handle nested if-then-else statements corerctly

XMLWordPrintable

      qdoc3 does not process the following code correctly..

      /*!
      \if defined(QTOPIA_PLATFORM)
      \title Qtopia Release Notes (Platform Edition)
      \section1 Qtopia Release Notes (Platform Edition)
      \else
      \if defined(QTOPIA_OPENSOURCE)
      \title Qtopia Release Notes (Open Source Edition)
      \section1 Qtopia Release Notes (Open Source Edition)
      \else
      \title Qtopia Release Notes
      \section1 Qtopia Release Notes
      \endif
      \endif
      ...
      */

      When QTOPIA_PLATFORM is defined, the following error is reported by qdoc3:

      /usr/local/qtopia/qtopia-platform-4.2.3/doc/src/releasenotes.qdoc:14: Unexpected '\endif'

      When QTOPIA_PLATFORM is not defined, no errors are reported.

      Problem: If the outermost if-statement has an else-block that contains a nested if-statement, qdoc does not consume the correct number of \endif directives when the condition of the outermost if-statement evaluates to true.

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

            gbk Martin Smith (Qt)
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes