[Qbs] Using clang-tidy with Qbs

Christian Gagneraud chgans at gmail.com
Sat Sep 23 03:23:44 CEST 2017


On 23 September 2017 at 01:41, Timur Kristóf <timur.kristof at gmail.com> wrote:
> Hi,
>
> I've found this bugreport: https://bugreports.qt.io/browse/QBS-997
> However it's unclear to me whether this actually made it into Qbs yet.
>
> What's the right way to use clang-tidy with my Qbs-based project?

qbs generate -g clangdb
ls -l <profile>/compile_commands.json
clang-check -p <profile> path/to/source.cpp
clang-tidy -p <profile> path/to/source.cpp

The documentation has been updated by Leena Miettinen, but is not
online. Maybe it's been done after the qbs-1.9 release.

>
> Thanks,
> Timur
>
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>



More information about the Qbs mailing list