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

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

    XMLWordPrintable

Details

    • 8
    • 6ee3cad531e782cf82777a4eca2f93f0469b2791 (qt/qttools/dev) 7b037de97993ef2f90f2421ba044ce5165861e71 (qt/qttools/6.2)
    • Da Vinci sprint 42

    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

            treinio Topi Reiniƶ
            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