[Qt-creator] clangbackend slow code completion

Ivan Donchevskii ivan.donchevskii at qt.io
Wed Feb 14 14:08:48 CET 2018


Btw. - it would be nice if the QtCreator clang-tidy plugin would (optionally)
make use of a .clang-tidy config file (to share it with clang power tools for
example).

It's definitely in our plans. We've already discussed how we can support different ways of configuring tidy (with file and with ui options).
Making separate tool for tidy/clazy (to run them like static analyzer on the whole project) is also in plans but we have to solve some technical things on the way to it.

Regards,
Ivan

________________________________
From: Qt-creator <qt-creator-bounces+ivan.donchevskii=qt.io at qt-project.org> on behalf of Guenter Schwann <guenterlists at schwann.at>
Sent: Wednesday, February 14, 2018 2:00 PM
To: qt-creator at qt-project.org
Subject: Re: [Qt-creator] clangbackend slow code completion

On Mittwoch, 14. Februar 2018 13:47:51 CET Konstantin Tokarev wrote:
> 14.02.2018, 03:04, "Steve Atkins" <steve at blighty.com>:
> >>  On Feb 13, 2018, at 4:00 PM, Nikos Chantziaras <realnc at gmail.com> wrote:
> >>
> >>  If you have the "clang-tidy" checks enabled, disable them, or only use 1
> >> or 2 of them. That feature is extremely slow.>
> > That fixes it, thanks. Bit of a shame, as they were rather a nice feature.
>
> There are 2 approaches to this problem:
> * use faster CPU
> * make clang-tidy itself faster

Or
* run clang-tidy/clazy "outside" of the code-model in a separate step in
QtCreator?
* run clang-tidy/clazy only when triggered (menu entry - like the for example
the clang power tools in VS)

Btw. - it would be nice if the QtCreator clang-tidy plugin would (optionally)
make use of a .clang-tidy config file (to share it with clang power tools for
example).

Regards
Guenter

_______________________________________________
Qt-creator mailing list
Qt-creator at qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20180214/4a7eb211/attachment.html>


More information about the Qt-creator mailing list