To support building UsingType for elaborated type specifiers:
namespace ns { class Foo {}; } using ns::Foo; // The TypeLoc of `Foo` below should be a ElaboratedTypeLoc with an inner UsingTypeLoc rather than the underlying `CXXRecordTypeLoc` class Foo foo;
It seems to work, and improves some diagnostics.
urgh, this function is now misnamed, because the decl we're returning isn't the representation.
But changing it seems like a lot of unneccesary churn and confusion.
So no action required, I'm just making a face :-S