It would be nice to have information about the spans of C++ to include in any warning/error messages.
rreverser notes it would also be good to have a 'backtrace' of how the type ended up being used.