<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">On 25/09/2017 6:44 pm,  <<a href="mailto:timur.kristof@gmail.com">timur.kristof@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">Hi,<br>
<br>
> > > I've found this bugreport: <a href="https://bugreports.qt.io/browse/QBS-99" rel="noreferrer" target="_blank">https://bugreports.qt.io/<wbr>browse/QBS-99</a><br>
> > > 7<br>
> > > However it's unclear to me whether this actually made it into Qbs<br>
> > > yet.<br>
> > ><br>
> > > What's the right way to use clang-tidy with my Qbs-based project?<br>
> ><br>
> > qbs generate -g clangdb<br>
> > ls -l <profile>/compile_commands.<wbr>json<br>
> > clang-check -p <profile> path/to/source.cpp<br>
> > clang-tidy -p <profile> path/to/source.cpp<br>
><br>
> set -e<br>
> qbs generate -g clangdb<br>
> find . -name '*.cpp'  | clang-check -p <some-default-qbs-profile><br>
><br>
> is somehow an unreal example of a git hook, server and/or client side<br>
><br>
> Chris.<br>
<br>
</div><div class="quoted-text">Thank you Chris!<br>
I'm not accustomed to using Qbs on the command line. How do I set up a<br>
Qbs profile? Is there a detailed documentation for that?<br>
<br>
So far, I've looked at the Configuring and How-tos section in the docs<br>
</div>but they don't cover this. I'd like to set up an arm-none-eabi kit like<br>
<div class="elided-text">I have with Qt Creator.</div><div class="elided-text" dir="auto"><br></div><div class="elided-text" dir="auto">Are you talking "bare metal" toolchain? </div></blockquote></div></div></div><div dir="auto">Anyway, look at qbs auxiliary programs such  as qbs-setup-toolchain, qbs-config, qbs-config-ui...</div><div dir="auto"><br></div><div dir="auto">You might want to add /path/to/qt/sdk/Tools/QtCreator/bin to your path.</div><div dir="auto"><br></div><div dir="auto">You can as well re-use qtc's own qbs profile. In CI I don't, but I would do on a Dev machine.</div><div dir="auto"><br></div><div dir="auto">Answering from my phone, please excuse my brievity.</div><div dir="auto"><br></div><div dir="auto">Chris</div></div>