Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt creator: "Warning: The code model could not parse an included file..."

Tags:

qt

qt-creator

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!

like image 909
f10w Avatar asked Sep 04 '18 08:09

f10w


1 Answers

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

like image 197
Gurushant Avatar answered Sep 24 '22 07:09

Gurushant