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

2019-01-18 Thread Charlie Turner
On Fri, 18 Jan 2019 at 12:54, Orgad Shaneh  wrote:

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

I guess there's no equivalent to the project.config file you can use
when importing projects from existing sources?
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] LLVM/Clang version (commit) used for particular Qt Creator version

2019-01-18 Thread Nikolai Kosjar
On 1/8/19 6:53 PM, Andrzej Telszewski wrote:
>>> Maybe you could add git tags to point to the commit in use for a given
>>> QtC version?
>> I'll try to create the necessary tags.
> Any timeframe for that?
http://code.qt.io/cgit/clang/llvm.git/ has the following tags now:

   qtcreator-4.8.0
   qtcreator-4.8.1

Nikolai
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


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

2019-01-18 Thread Orgad Shaneh
On Fri, Jan 18, 2019 at 12:55 PM Charlie Turner  wrote:

> On Fri, 18 Jan 2019 at 10:39, Eike Ziller  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
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


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

2019-01-18 Thread Charlie Turner
On Fri, 18 Jan 2019 at 10:39, Eike Ziller  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?
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


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

2019-01-18 Thread Eike Ziller


> On 18. Jan 2019, at 11:29, Charlie Turner  wrote:
> 
> Hi,
> 
> My project does "Include what you use" due to legacy reasons that I'm
> afraid will probably never get fixed. What I need to do is #include
> "config.h" as part of the indexer process every time it tries to read
> a file. I remember I could do this with the QtCreator.config file. I'm
> not using CMake and what looks like the fancy new Clang Code Model.
> How can I achieve this in the new environment?
> 
> Second question: I would like to pass to the clang code model the
> option -Wno-expansion-to-undefined, but I'm not sure where I can do
> this.

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.

> 
> Thanks,
> 
> -- 
> Kind regards,
>  Charlie.
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator

-- 
Eike Ziller
Principal Software Engineer

The Qt Company GmbH
Rudower Chaussee 13
D-12489 Berlin
eike.zil...@qt.io
http://qt.io
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 
144331 B

___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


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

2019-01-18 Thread Charlie Turner
Wow, such errors!

My project does *not* "Include what you use"
I'm *now* using CMake and what

On Fri, 18 Jan 2019 at 10:29, Charlie Turner  wrote:
>
> Hi,
>
> My project does "Include what you use" due to legacy reasons that I'm
> afraid will probably never get fixed. What I need to do is #include
> "config.h" as part of the indexer process every time it tries to read
> a file. I remember I could do this with the QtCreator.config file. I'm
> not using CMake and what looks like the fancy new Clang Code Model.
> How can I achieve this in the new environment?
>
> Second question: I would like to pass to the clang code model the
> option -Wno-expansion-to-undefined, but I'm not sure where I can do
> this.
>
> Thanks,
>
> --
> Kind regards,
>   Charlie.



-- 
Kind regards,
  Charlie.
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


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

2019-01-18 Thread Charlie Turner
Hi,

My project does "Include what you use" due to legacy reasons that I'm
afraid will probably never get fixed. What I need to do is #include
"config.h" as part of the indexer process every time it tries to read
a file. I remember I could do this with the QtCreator.config file. I'm
not using CMake and what looks like the fancy new Clang Code Model.
How can I achieve this in the new environment?

Second question: I would like to pass to the clang code model the
option -Wno-expansion-to-undefined, but I'm not sure where I can do
this.

Thanks,

-- 
Kind regards,
  Charlie.
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator