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

Wrong include paths used in Qbs bare metal project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: Qt Creator 4.13.1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      Steps to reproduce:

      • Create a bare metal kit with a non-gcc compiler (I use IAR).
      • Create a .c file with #include <stdbool.h>
      • Ctrl-Click on it

      Qt Creator opens the stdbool.h from its own libclang installation instead of the one from the toolchain. The property cpp.compilerIncludePaths are correctly detected and are also part of the code model. Files that are only defined by the toolchain are correctly found by the code model.

      It looks like the Clang code model always looks in its own paths first. This behavior is unexpected.

      When disabling the Clang code model, include resolution works as expected.

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            rweickelt Richard Weickelt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes