Clang-tidy helps modernize C/C++ code by detecting bugs, inefficiencies & outdated patterns. While setup can be tricky, it's a powerful ally for migrating large codebases to modern C++:
www.youtube.com/watch?v=EWq4... #Cpp #ClangTidy #StaticAnalysis #CodeQuality
C++ Applications Architecture Best Practices: Migrating to New C++ Standards with Clang-tidy
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 ``` All Windows and Qt videos: TBA Please note that non-English dubs for all KDAB videos are auto-generated. These translations have not been moderated by us and may contain inaccuracies. We appreciate your understanding and apologize for any confusion this may cause. About the host: This video is presented by Anton Kreuzkamp, software engineer and C++ trainer at KDAB. Through the...