Customising Clang-Tidy to Modernize Legacy C++ Code - From Printf to Std::Print
Meeting Cpp via YouTube
NY State-Licensed Certificates in Design, Coding & AI — Online
Master Agentic AI, GANs, Fine-Tuning & LLM Apps
Overview
Build a Learning Habit
Download Class Central's free printable study calendar
Download for Free
Learn how to leverage clang-tidy for modernizing legacy C++ code in this 44-minute conference talk from Meeting C++ 2024. Discover practical techniques for automating the transformation of over 7,000 lines of legacy code, focusing on upgrading diagnostic logging from printf wrappers to modern alternatives like libfmt's fmt::printf, fmt::print, and C++23's std::print. Follow along as Mike Crowe shares his journey of creating custom clang-tidy checks based on Clang 17's modernize-use-std-print, addressing challenges faced during the modernization process, and providing insights for developers who may not be LLVM or Clang experts. Gain valuable knowledge about adapting and reusing clang-tidy checks for various code modernization tasks while avoiding common pitfalls in the implementation process.
Syllabus
Customising clang tidy to modernise your legacy C++ code - Mike Crowe - Meeting C++ 2024
Taught by
Meeting Cpp