Building on Clang-Tidy to Move From Printf-Style to Std::Print-Style Logging and Beyond
Offered By: cpponsea via YouTube
Course Description
Overview
Explore how to modernize an old C++ codebase by transitioning from printf-style to std::print-style logging using clang-tidy in this 44-minute conference talk. Learn about the journey from non-macro wrappers for printf to libfmt's fmt::printf, then to fmt::print, and potentially to C++23's std::print. Discover the challenges faced during this process, including the development of a custom clang-tidy check based on Clang 17's modernize-use-std-print. Gain insights into the benefits of each transition step and how similar approaches could facilitate future migrations to standard logging libraries like spdlog. Ideal for C++ developers interested in codebase modernization, this talk provides practical tips for leveraging clang-tidy to automate tedious refactoring tasks, even without extensive LLVM or Clang expertise.
Syllabus
Building on clang-tidy to Move From printf-style to std::print-style Logging and Beyond - Mike Crowe
Taught by
cpponsea
Related Courses
Computer GraphicsUniversity of California, San Diego via edX Intro to Parallel Programming
Nvidia via Udacity Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera