Jon Ross-Perkins cb4686bf21 Enable misc-non-private-member-variables-in-classes and adjust style to match (#4702) 1 yıl önce
..
cpp_refactoring cb4686bf21 Enable misc-non-private-member-variables-in-classes and adjust style to match (#4702) 1 yıl önce
BUILD a3b1c433be Remove legacy repo_name settings (#3772) 2 yıl önce
README.md fd28f5f9a8 Add the beginnings of a RecursiveASTVisitor-based migration tool. (#2041) 3 yıl önce
clang_tidy.yaml 88a9d244b7 Initial migration framework (#525) 5 yıl önce
migrate_cpp.py 319c3caf99 Convert Python type hinting to be PEP-585 Compliant (#4083) 1 yıl önce
output_segment.h 79ac4c953a Switch `migrate_cpp` to use concepts. (#3667) 2 yıl önce
rewriter.cpp 3f9a06aee3 Look at flipping clang-tidy's misc-* to enable-by-default (#4699) 1 yıl önce
rewriter.h 3628e22ca2 Put python object definition and assignment on same line (#3057) 2 yıl önce
rewriter_test.cpp 4845f40dff Switch `CARBON_CHECK` to a format string API (#4285) 1 yıl önce

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.