Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.12.4
-
None
-
a40d2ea7057ab7e17b252b2779bbf3a3c9d06cec (qt-creator/qt-creator/4.13)
Description
Toolchain Defines are not passed to the editor code model. Defines are correctly visible in C++ Code Model Inspector but the editor doesn't highlight nor code complete them.
Steps to reproduce:
- Add custom C or C++ compiler from Options -> Kits -> Compilers tab
- Add predefined macros for the compiler
- Create a new kit or switch any older kit to use the custom compiler
- Create a new project that uses the kit with the custom compiler
- Try to use the predefined macro in any C or C++ source file
Expected result:
- The predefined macro is correctly highlighted and code completed in the editor.
Actual result:
Issue occurs with both CMake and QMake projects.
I have only tested with 4.12.4, but probably affects more versions. This feature worked earlier (at least some time last year) so this is regression.