[cmake-developers] [PATCH] QtCreator integration: C++ includes must come first

Kevin Ottens ervin at kde.org
Thu Aug 25 14:54:18 EDT 2016


Hello,

When using the Clang Code Model in QtCreator, it turned out that having
the C system include dirs can make it report false positives for most
uses on the STL. This is due to the order the Clang Code Model looks at
the include directories and some C includes in /usr/include could be
incompatible with the used STL if found first.

For further details on how this is currently processed within QtCreator and 
how the issue shows up on my computer, you can take a look at this issue:
https://bugreports.qt.io/browse/QTCREATORBUG-16432

It got a previous fix earlier, but it looks like I am in a loophole which 
requires slight adjustment of the previous commit by Tobias Hunger.

I've been successfully using the attached patch for the last two weeks now. 
Obviously I'd like to see it merged upstream instead of having this locally 
only. It looks trivial enough to me, but please let me know if something needs 
to be changed with it which I didn't spot.

Regards.
-- 
Kévin Ottens, http://ervin.ipsquad.net

KDAB - proud supporter of KDE, http://www.kdab.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-QtCreator-integration-C-includes-must-come-first.patch
Type: text/x-patch
Size: 1689 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160825/cfdaf7e1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160825/cfdaf7e1/attachment.sig>


More information about the cmake-developers mailing list