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

Wrong include paths used in Qbs bare metal project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.13.1
    • C/C++/Obj-C++ Support
    • 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

            kandeler Christian Kandeler
            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