This short series uses C++11 features to simplify libcc1. This brings the code closer to how I pictured it when I first wrote it. (It would be further improved by std::apply, but this isn't available until C++17.)
I built and tested this against git GDB on x86-64 Fedora 32. Note that the C++ plugin currently does not for git GCC -- it crashes. This series doesn't make it worse (it may slightly change the reported failures), but nor does it improve it. There's some more simplification that could be done; for example the two plugins currently have copies of code that ought to be shared. However, I haven't done this. Tom