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

Charlie Turner chturne at gmail.com
Fri Jan 18 11:44:46 CET 2019


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?



More information about the Qt-creator mailing list