Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 4.12.2
-
None
-
* GCC toolchain
-
-
7fad01eb026d92007fc8a813601625a465c1db6a (qt-creator/qt-creator/master)
Description
When we use QBS project and specify there the cpp.distributionIncludePaths property, then the header files from that paths highlighted as 'undefined'. Also the defines from that files not highlighted too.
Note: at least this makes sense only with GCC-based toolchains, where '-system' option has effects.
Please look on an example sources from an attached archive:
== app.qbs ==
import qbs Application { condition: { console.info("p: " + cpp.distributionIncludePaths) return true } Properties { condition: qbs.toolchain.contains("gcc") cpp.driverFlags: [ "-mcpu=cortex-m3", "-specs=nosys.specs" ] } consoleApplication: true Depends { name: "cpp" } cpp.distributionIncludePaths: [ sourceDirectory + "/dist-includes"] files : [ "main.cpp" ] }
== main.cpp ==
#include <foo.h> int main() { return FOO; }
== foo.h ==
#pragma once #define FOO 123
Attachments
For Gerrit Dashboard: QTCREATORBUG-24162 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
305357,2 | QbsProjectManager: Consider cpp.distributionIncludePaths | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |