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

Many code model errors in complex project

XMLWordPrintable

    • Linux/X11

      QtC 4.10 has many code model errors in cpp/h files in complex project: for ex. many file not found errors in code for headers even header exists in INCLUDEPATH in .pro file (builds fine however). Therefore many unknown type name errors appear, C++ conventions, etc. Also navigation to the header sources like F2 does not work as QtC can't find the path.

      Seems code analyzer for both CLang code model and QtC native do not track all cases and conditions in .pro file like this:

      contains (DEFINES, SOME_VAR_ENABLED) {
          INCLUDEPATH += src/myPath
      }

      Sample open source project to reproduce: https://github.com/mavlink/qgroundcontrol

      And some screenshots:

      Same problem for QML components there: many "Unknown component errors":

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

            kosjar Nikolai Kosjar
            jirauser39314 user-45b5b (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes