Overview of the C++ Rewriter Tool
masterThe C++ Rewriter Tool is a clang-based AST rewriter designed for C++20 modernization. It performs type-aware code transformations that go beyond simple regex, such as converting map.find(x) != map.end() to map.contains(x).
It is distributed as a self-contained package including:
bin/cpp_rewriter: The core rewriter tool.lib/clang/<version>/: Bundled clang headers to ensure compatibility without requiring a matching system clang.scripts/: Python wrapper scripts (run_rewriter.py,apply_edits.py,process_edits.py) for executing and applying transformations.