Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-805

Code completion and editor not aware of INCLUDEPATHs in custom prf files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 1.3.1
    • Editors
    • None
    • Windows XP, Windows 7, Ubuntu 9.10, QtCreator 1.3.1 and current master
    • 8b7eacc19f32d67206d269d6394a3889c60ea801

      Short explanation first:
      We have quite complicated .prf files system in our project:

      • one main.prf containing basic variables definition (especially root path for source code tree, e.g. SRC=/some/path). Every other prf, pro uses load(main) in the first line.
      • for each library in our project we have separate libraryname.prf file to simply use library in this way: CONFIG += libraryname
        Each libraryname.prf file loads main.prf, adds path to INCLUDEPATH (relative to SRC variable from main.prf) and adds library to LIBS and also adds other libraries to CONFIG when required.
        All prfs are in one directory added to qmake with:
        qmake -set QMAKEFEATURES /path/to/this/dir

      This works pretty nice except that QtCreator seems not to notice INCLUDEPATHs in C++ Editor so any #include with header from library added by prf are marked as "file not found" which results in not working code completion and lot of yellow highlighted lines as it can't resolve type names. But projects are compiling. Could it be made to parse also prf files? I checked in QtCreator sources and I found that prf files are parsed so shouldn't code completion and #include's work fine?

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

            dt Daniel Teske
            faldżip Filip Piechocki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes