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

CMake project code model messed up

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: Qt Creator 3.3.0
    • Fix Version/s: Qt Creator 3.4.0
    • Labels:
    • Environment:
      OpenSuse Linux 13.2.
      Qt Creator 3.3.0 (opensource)
      Based on Qt 5.4.0 (GCC 4.6.1, 64 bit)
      Built on Dec 8 2014 at 15:21:39
      From revision d36c4d87db

      Description

      I have a CMake project with several targets defined in extarnal CMake files and attached with CMake's add_subdirectory command.
      Qt-creator 3.2 correctly listed and parsed all project files.
      However, version 3.3 cannot find most of #include-d files. It seems, that is completely disregards CMake's include_directories and target_include_directories commands during includes search. As result, it sees only includes relative to current file, which is of course not always the case in most of real world projects.
      Code model dialog also displays strange data. Target names on the Project Parts page are mostly unrelated to files they list below. They are either incomplete or list files from other libraries.
      Btw, v 3.2 showed only 1 project part for the same project, which may be not strictly correct, but at least it navigated the code very well.

      Please, fix. This just kills the IDE.

        Attachments

        For Gerrit Dashboard: QTCREATORBUG-13695
        # Subject Branch Project Status CR V

          Activity

            People

            • Assignee:
              hunger Tobias Hunger
              Reporter:
              knuckles Max Breev
            • Votes:
              4 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes