[Qt-creator] Code model / static analyzer with changed working copies incorrect
Wiebe Cazemier
wiebe at halfgaar.net
Mon Aug 14 20:32:49 CEST 2023
----- Original Message -----
> From: "apoenitz" <apoenitz at t-online.de>
> To: "Wiebe Cazemier" <wiebe at halfgaar.net>
> Sent: Monday, 14 August, 2023 18:42:31
> Subject: Re: [Qt-creator] Code model / static analyzer with changed working copies incorrect
> On Mon, Aug 14, 2023 at 04:06:35PM +0200, Wiebe Cazemier via Qt-creator wrote:
>> Hi there David,
>> 11.0.2 indeed picks up changes again when I save, but it's still not as
>> good as the older QtCreators, which simply didn't need saving at all to
>> always have an up-to-date code model.
>> Regards,
>> Wiebe
>
> Out of curiosity: Is this with 'clangd' enabled, and does this change if
> you temporarily disable it?
>
> Andre'
Ah, yes, if I disable clangd, it works better in that regard.
I haven't looked into how clangd is fed, but it looks to me like it's more complex than just giving it the directory where the source code is, because it IS able to analyze the unsaved file you're looking at. So, is it possible to feed it all working copies of open files?
Wiebe
More information about the Qt-creator
mailing list