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

Many code model errors in complex project

    XMLWordPrintable

Details

    • Linux/X11

    Description

      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":

      Attachments

        1. image-2019-09-10-15-42-50-541.png
          358 kB
          user-45b5b
        2. image-2019-09-10-15-46-16-620.png
          381 kB
          user-45b5b
        3. image-2019-09-23-04-05-36-981.png
          297 kB
          user-45b5b
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes