Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
Qt Creator 4.13.1
-
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.