[Qbs] Reducing clazy noise

Ch'Gans chgans at gna.org
Mon Apr 24 06:29:42 CEST 2017


On 24 April 2017 at 03:52, Elyzabeth von Reuenthal
<elyzabethvonreuenthal at iserlohn-fortress.net> wrote:
> Hi,
>
> I'm using the clazy plugin[0] for clang to check my source code during
> compile. I enabled it like this:
>
>> // enable clazy if using clang
>> Properties {
>>     condition: cpp.compilerName.contains("clang")
>>     cpp.cxxFlags: ["-Xclang", "-load", "-Xclang", "ClangLazy.so", "-Xclang",
>>     "-add-plugin", "-Xclang", "clang-lazy"]
>> }
>
> This however produces warning for both my code, and Qt headers. To fix this,
> the readme says:
>> If you want to suppress warnings from headers of Qt or 3rd party code,
>> include them with -isystem instead of -I.
>
> How can I achieve this with qbs?

I have no clue and I'm looking forward to know the answer too! ;)

Chris

>
> Thanks,
>
> Ely
>
> [0]: https://github.com/KDE/clazy
> _______________________________________________
> Qbs mailing list
> Qbs at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>



More information about the Qbs mailing list