Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
Qt Creator 4.10.0
-
None
Description
QtC 4.10 has many code model errors in cpp/h files in complex project: for ex. many file not found errors in code for headers even header exists in INCLUDEPATH in .pro file (builds fine however). Therefore many unknown type name errors appear, C++ conventions, etc. Also navigation to the header sources like F2 does not work as QtC can't find the path.
Seems code analyzer for both CLang code model and QtC native do not track all cases and conditions in .pro file like this:
contains (DEFINES, SOME_VAR_ENABLED) { INCLUDEPATH += src/myPath }
Sample open source project to reproduce: https://github.com/mavlink/qgroundcontrol
And some screenshots:
Same problem for QML components there: many "Unknown component errors":