Refactoring C++ with Clang
Offered By: CppNow via YouTube
Course Description
Overview
Explore automated C++ refactoring using Clang in this 44-minute CppNow conference talk. Learn about the infrastructure built on top of Clang for recognizing and transforming specific C++ patterns. Discover the process of creating a source-to-source translation tool for updating from old APIs to new ones. Delve into topics such as refactoring goals, automation tools, cross-translation barriers, integration layers, and standalone tools. Gain insights into the framework's architecture, including predicate libraries, primitive matchers, and bound matchers. Watch a live demo of the refactoring tool in action and understand how to leverage open-source data tools for effective C++ code transformation.
Syllabus
Introduction
The goal of refactoring
Tools and automation
Crosstranslation barrier
Integration
Architecture
Libraries
Integration Layers
Questions
Standalone Tools
Stroman Interface
The Problem
The First Step
The Framework
Refactoring Tool
The Magic
The predicate library
Building a primitive matcher
Restricting the matcher
Adding a predicate
Adding a class
namespace matches
Combining predicates
Source code example
Match Finder
Renamer
Bound Matchers
Replace Object
Match Methods
Live Demo
RealMatcher
Open Source
Data Tool
Taught by
CppNow
Related Courses
Your Favorite Undefined Behavior in C++CppNow via YouTube Under the Hood - Assembly, System Calls, and Hardware in C++
CppNow via YouTube Carbon Language Successor Strategy - From C++ Interop to Memory Safety
CppNow via YouTube Value Oriented Programming Part 1 - You Say You Want to Write a Function
CppNow via YouTube Introducing a Memory-Safe Successor Language in Large C++ Code Bases
CppNow via YouTube