[Qt-creator] How to change default parse context?

Andrzej Telszewski andrzej at telszewski.com
Thu Jan 25 09:17:06 CET 2024


On 24/01/2024 10:27, Christian Kandeler via Qt-creator wrote:
> On 1/23/24 18:14, Andrzej Telszewski wrote:
>> [You don't often get email from andrzej at telszewski.com. Learn why 
>> this is important at https://aka.ms/LearnAboutSenderIdentification ]
>>
>> On 23/01/2024 10:37, Christian Kandeler via Qt-creator wrote:
>>> On 1/23/24 09:20, Andrzej Telszewski wrote:
>>>> I'm using _Imported_ project, which is a C one.
>>>> Unfortunately, the _Active Parse Context_ for opened header files
>>>> defaults to C++.
>>>
>>> In a pure C project, there should only be a single parse context. Most
>>> likely you do have some C++ sources in there. If not, you should file
>>> a bug report with a project attached.
>>>
>>
>> Is there a way to debug which files are considered C++?
>>
> Tools->Debug Qt Creator -> Inspect C++ code model
>
> lists the project parts.
>
>

I looked into:

     Inspect C++ code model -> Project Parts -> Project Files

and I noticed that there are many _CXXHeader_ file kinds.

Is that what makes QtC to treat the project as C++?



More information about the Qt-creator mailing list