Perhaps one of the most mind-boggling parts of this project is it has a hand-rolled parser for the subset of C++ that it can emit. All implemented in a single header. Equal parts impressive and crazy.
https://github.com/tpecholt/imrad/blob/main/src/cpp_parser.h