Talk Preview: Building on clang-tidy: move from printf-style to std::print-style logging
summary
Old C codebase logging gets automated modernisation using a clang-tidy check that converts non-macro printf-style calls first to fmt::printf to fmt::print to std::print and then to more standard logging APIs, avoiding fragile search-and-replace. Implementation reuses and extends Clang 17’s modernize-use-std-print logic, handles format-string vs. argument mismatches, and runs as an automated fix; the custom check successfully modernises diagnostic logging and paves the way for spdlog.
AI-written summary · about
related talks
01h 24mExtending clang-tidy in the Present and in the Future
01h 01m“A modern formatting library for C++”
33mC++20 String Formatting Library: An Overview and Use with Custom Types
16mTailored static tooling using Clang: Clazy
32mTeaching Old Compilers New Tricks: Transpiling C++17 to C++11
53mPruning Error Messages From Your C++ Template Code
59mThe Best Parts of C++
01h 04mC++ Insights: Peek behind the curtains of your C++ compiler
