[Qt-creator] [4.6] Clang code model doesn't work on Android

Nikos Chantziaras realnc at gmail.com
Fri Feb 16 06:41:36 CET 2018

On 16/02/18 04:24, Nikos Chantziaras wrote:
> 4.6 beta1, but also the latest rc1 snapshot (15 Feb), seem to have a 
> non-working Clang code model when using an Android kit.
> The error is usually something like this:
>    qglobal.h:45:12: fatal error: 'type_traits' file not found
>    QDebug:1:10: note: in file included from [...]
> This is printed by the yellow warning sign at the top. As a result, the 
> code model is completely broken for the rest of the file.
> Is this a known bug?

Well, actually it seems even the built-in code model has issues with 

In both cases, standard C++ headers cannot be found. Only standard C 
headers work. So this:

   #include <cstdio>

appears underlined with the pop-up error message being "no such file or 

But this:

   #include <stdio.h>

works fine.

More information about the Qt-creator mailing list