[Qt-creator] How to unconditionally include code into the indexer?

Orgad Shaneh orgads at gmail.com
Fri Jan 18 13:54:16 CET 2019


On Fri, Jan 18, 2019 at 12:55 PM Charlie Turner <chturne at gmail.com> wrote:

> On Fri, 18 Jan 2019 at 10:39, Eike Ziller <Eike.Ziller at qt.io> wrote:
> > Options > C++ > Code Model > Diagnostic Configuration > Manage...
> > Copy a template (best one that doesn’t add too many checks, because that
> will make code highlighting and completion slower), add the -W argument
> under the “Clang” tab.
>
> Brilliant, that's done the trick. Now, how can I ask the code model to
> always #include "config.h" in the files it parses?
>

Set it as a precompiled header. I'm not sure how this is done with cmake, I
did it with qmake and qbs.

- Orgad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20190118/1f35e980/attachment.html>


More information about the Qt-creator mailing list