Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up


Find what you need - explore our website and developer resources
21 September 2022
A while ago we had an episode on clang-tidy. In the meantime I once again went over which checks to enable.
This time my aim was to fine-tune which checks to run, and I had a few bad surprises that you can learn about in this video.
The outcome was a much improved .clang-tidy file that checks a lot of extra things, plus a script to generate this file to avoid a lot of problems.
Links:
* Original episode on clang-tidy and clazy:
* Running clang-tidy and clazy from Qt Creator https://www.youtube.com/watch?v=gO3KCzdmcrQ
* Running clazy and clang-tidy from the Command Line https://www.youtube.com/watch?v=c0ie0xww7SA
The example code showcased in this video is available here: https://github.com/KDAB/kdabtv/tree/master/Qt-Widgets-and-more/update-clang-tidy
0:00 Welcome
1:46 The .clang-tidy file
2:58 The .clang-tidy.settings file
3:06 The .clang-tidy.checks file
4:20 The updatClangTidy.py script
4:52 It does take longer to run with more checks - some timings
7:32 Running clang tidy in parallel
9:20 Using clang-tidy from within Qt Creator
10:14 CMake snippet to update the .clang-tidy file
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more