Chandler Carruth 01e12111a8 Auto-update pre-commit repositories and fix. (#3427) 2 лет назад
..
cpp_refactoring 8c28a0494e Add size="small" to test targets where advised (#3326) 2 лет назад
BUILD 8c28a0494e Add size="small" to test targets where advised (#3326) 2 лет назад
README.md fd28f5f9a8 Add the beginnings of a RecursiveASTVisitor-based migration tool. (#2041) 3 лет назад
clang_tidy.yaml 88a9d244b7 Initial migration framework (#525) 5 лет назад
migrate_cpp.py a0763413cb Update pre-commit config (#2498) 3 лет назад
output_segment.h 4d522c8e90 Finish making clang-tidy (mostly) work (again) and run -fix (#2312) 3 лет назад
rewriter.cpp 4d522c8e90 Finish making clang-tidy (mostly) work (again) and run -fix (#2312) 3 лет назад
rewriter.h 3628e22ca2 Put python object definition and assignment on same line (#3057) 2 лет назад
rewriter_test.cpp 01e12111a8 Auto-update pre-commit repositories and fix. (#3427) 2 лет назад

README.md

C++ migration tooling

Table of contents

Overview

migrate_cpp assists in migration of C++ code to Carbon. It's currently being assembled; more documentation will be added later.

Structure

The migrate_cpp tool uses a clang::RecursiveASTVisitor to traverse Clang's AST and, to each node, associate replacements. Each node's replacement is a sequence of text, or a reference to some other node that should be used to replace it.