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

CMake project code model messed up

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • Qt Creator 3.4.0
    • Qt Creator 3.3.0
    • 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

        1. CMakeTest.zip
          2 kB
          Stefan Sommerfeld
        2. Correct include path specified but include is still unresolved.png
          136 kB
          Piyoosh Mukhija
        3. unresolved include.png
          112 kB
          Piyoosh Mukhija
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            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