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

qdoc: relative paths in 'includepaths' variable are resolved too late

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 6.2.0
    • Fix Version/s: 6.2.1, 6.3.0 Alpha
    • Component/s: Build tools: qdoc
    • Labels:
      None
    • Commits:
      6ee3cad531e782cf82777a4eca2f93f0469b2791 (qt/qttools/dev) 7b037de97993ef2f90f2421ba044ce5165861e71 (qt/qttools/6.2)

      Description

      A potential issue with how QDoc handles include paths; typically, we have extra include paths in the .qdocconf:

      includepaths += ./include
      

      Where the . refers to the directory where the .qdocconf is located. This works because QDoc sets the current working directory to the directory of the file it's parsing.

      However, an attempt to resolve those paths is made only after the entire config has been processed - at this point, the cwd may have changed. One such case is a 'wrapper' qdocconf (in another dir) that include()s the original to override some settings.

        Attachments

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

          Activity

            People

            Assignee:
            treinio Topi Reiniƶ
            Reporter:
            treinio Topi Reiniƶ
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes