Qt creator: "Warning: The code model could not parse an included file..."
11,484
http://blog.qt.io/blog/2018/07/18/qt-creator-4-7-0-released/ states that clang code model is on by default. The warning is thrown by the Clang code model plugin. You can disable it or try earlier qt creators such as 4.6.2
Related videos on Youtube
Author by
f10w
I am interested in: Optimization Computer Vision Machine Learning
Updated on June 18, 2022Comments
-
f10w about 2 years
I have updated Qt Creator to the latest version (4.7.0) and now I have this warning when opening my projects:
Warning: The code model could not parse an included file, which might lead to slow or incorrect code completion and highlighting, for example xmmintrin.h:818:1: error: definition of builtin function '_mm_getcsr' emmintrin.h:1:1: note: in file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h:1: emmintrin.h:31:10: note: in file included from /usr/lib/gcc/x86_64-linux-gnu/5/include/emmintrin.h:31:
Is this a bug and how to fix this please? I'm on Ubuntu 16.04. Thank you very much in advance!
-
f10w almost 6 yearsThanks. This issue will be fixed in 4.7.1: bugreports.qt.io/browse/QTCREATORBUG-21034.
-
Display name almost 6 yearsFor anyone searching for how to turn clang off: Disable the checkbox at Help > About Plugins (Windows/Linux), Qt Creator > About Plugins (macOS) (copied from Eike Zilleer at blog.qt.io/blog/2018/07/18/qt-creator-4-7-0-released)
-
aalimian over 5 yearsI just installed Qt Creator 4.7.1 and I still get this warning.
-
aalimian over 5 years@Gurushant, disabling got rid of the warnings, but intellisense got affected too as a result. Does 4.6.2’s plugin work better?
-
Gurushant over 5 years@armanalli, 4.6.2 does not have clang model, so you are stuck with normal intellisense that you used to have before
-
aalimian over 5 years@Gurushant, but I have intellisense this way too, just not as good as it was with clang model. Are you saying that downgrading to 4.6.2 from 4.7.1 will give me better intellisense?
-
Gurushant over 5 years@armanali sorry if i created a confusion, no i don't think it will give better result. I just wanted to clear that earlier version did not have clang model so it feels good to use as it is not buggy.
-
jaggi about 5 yearsI disabled the clang plugins on qtcreator in 4.8, but when I'm editing the code, it won't even show markers for normal syntax errors like missing semicolon etc.