Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Customising clang tidy to modernise your legacy C++ code - Mike Crowe - Meeting C++ 2024

Автор: Meeting Cpp

Загружено: 2024-11-23

Просмотров: 1524

Описание:

Customising clang tidy to modernise your legacy C++ code - Mike Crowe - Meeting C++ 2024
Meeting C++ 2024: https://meetingcpp.com/2024
Slides: https://slides.meetingcpp.com
Survey: https://survey.meetingcpp.com

Modernising your codebase sounds fun to start with, but quickly gets tedious. Can we use tools to help us speed through the tedious bit?

This is tale of how I've modernised over seven thousand individual lines of rather old C++ code by mostly-automatically moving its diagnostic logging from using wrappers for `printf` to libfmt's fmt::printf, then to fmt::print and hopefully on to C++23's std::print by using a small clang-tidy check based on the code behind Clang 17's modernize-use-std-print clang-tidy check.

We'll consider how the move to fmt::printf was easy and beneficial, why moving to fmt::print was rather harder and how that led me to write what became the modernize-use-std-print clang-tidy check and then adapt it for our use case. Having done that, I was able to re-use that work for more checks to modernise more of the code.

If you're thinking, "I'm no LLVM or Clang expert, so maybe this talk is not for me" - I'm not either! So I'll share some of the challenges I faced on the way to help you avoid them and get to the fun part faster.

Customising clang tidy to modernise your legacy C++ code - Mike Crowe - Meeting C++ 2024

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Thread Pool Elements - Jens Weller - Meeting C++ 2024

Thread Pool Elements - Jens Weller - Meeting C++ 2024

Optimizing Away C++ Virtual Functions May Be Pointless - Shachar Shemesh - CppCon 2023

Optimizing Away C++ Virtual Functions May Be Pointless - Shachar Shemesh - CppCon 2023

The real problem of C++ - Klaus Iglberger - Meeting C++ 2025

The real problem of C++ - Klaus Iglberger - Meeting C++ 2025

C++ Russia 2017: Юрий Ефимочев, clang-tidy: путешествие внутрь C++ Abstract Syntax Tree

C++ Russia 2017: Юрий Ефимочев, clang-tidy: путешествие внутрь C++ Abstract Syntax Tree

Introduction to Common Compiler Tools

Introduction to Common Compiler Tools

Три способа, которыми Rust превосходит C++ (технический анализ)

Три способа, которыми Rust превосходит C++ (технический анализ)

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022

Back to Basics: Templates in C++ - Nicolai Josuttis - CppCon 2022

RUST: Язык Программирования, Который ЗАМЕНИТ C и C++?

RUST: Язык Программирования, Который ЗАМЕНИТ C и C++?

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Кто пишет код лучше всех? Сравнил GPT‑5.2, Opus 4.5, Sonnet 4.5, Gemini 3, Qwen 3 Max, Kimi, GLM

Why Light Speed Is The LIMIT? What Feynman Uncovered Will COLLAPSE Your Mind

Why Light Speed Is The LIMIT? What Feynman Uncovered Will COLLAPSE Your Mind

C++ Weekly - Ep 385 - The Important Parts of C++20 In Less Than 8 Minutes!

C++ Weekly - Ep 385 - The Important Parts of C++20 In Less Than 8 Minutes!

Keep your code sane with clang-tidy - Daniel Jasper - Meeting C++ 2015 Lightning Talks

Keep your code sane with clang-tidy - Daniel Jasper - Meeting C++ 2015 Lightning Talks

Стоит ли все еще изучать язык программирования C?

Стоит ли все еще изучать язык программирования C?

clang-tidy в Visual Studio Code

clang-tidy в Visual Studio Code

Building the PERFECT Linux PC with Linus Torvalds

Building the PERFECT Linux PC with Linus Torvalds

C++23: An Overview of Almost All New and Updated Features - Marc Gregoire - CppCon 2023

C++23: An Overview of Almost All New and Updated Features - Marc Gregoire - CppCon 2023

C++23 tools you would actually use - Alex Dathskovsky - Meeting C++ 2025

C++23 tools you would actually use - Alex Dathskovsky - Meeting C++ 2025

Build Clang++20 (LLVM  18 and lldb) from source

Build Clang++20 (LLVM 18 and lldb) from source

Most Ridiculous Worker Mistakes Caught on Camera

Most Ridiculous Worker Mistakes Caught on Camera

Mr Bean does 'Blind Date' | Comic Relief

Mr Bean does 'Blind Date' | Comic Relief

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com