You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reland: [clang] preserve class type sugar when taking pointer to member
Original PR: #130537
Reland after updating lldb too.
This changes the MemberPointerType representation to use
a NestedNameSpecifier instead of a Type to represent the base
class.
Since the qualifiers are always parsed as nested names, there
was an impedance mismatch when converting these back and
forth into types, and this led to issues in preserving
sugar.
The nested names are indeed a better match for these,
as the differences which a QualType can represent cannot be
expressed syntatically, and they represent the use case more
exactly, being either dependent or referring to a CXXRecord,
unqualified.
This patch also makes the MemberPointerType able to represent
sugar for a {up/downcast}cast conversion of the base class,
although for now the underlying type is canonical, as preserving
the sugar up to that point requires further work.
As usual, includes a few drive-by fixes in order to make use
of the improvements.
0 commit comments