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
7 May 2025
Clang-tidy is a static analysis tool for C/C++ code, warning its users about potential errors, performance problems or code that modern C++ allows to express in a better way. Often, clang-tidy can even apply modernizations automatically. Applying clang-tidy is not exactly intuitive, but successfully applied, it is an invaluable support in migrating large codebases to new C++ standards.
Links:
* Running clang-tidy and clazy from Qt Creator: https://www.youtube.com/watch?v=gO3KCzdmcrQ
* Sarcasm tips documentation - Compilation database: https://sarcasm.github.io/notes/dev/compilation-database.html
* Command from video:
```
run-clang-tidy checks='*,modernize-loop-convert' -config="
Unknown macro: {Checks}
" -fix
```
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