Example:
typedef int const* pcint;
pcint g();
Given the decl for g in variable gDecl, gDecl.ReturnType.CanonicalType.PointeeType.CanonicalType.UnqualifiedDesugaredType returns a BuiltinType that still represents const int.
Poking around in the sources suggests that the issue is in the fact that IsSugared returns false for qualified types. What I'd really like here is to be able to get a Type object for Handle.UnqualifiedType, which doesn't seem to exist at the moment.
Example:
Given the decl for
gin variablegDecl,gDecl.ReturnType.CanonicalType.PointeeType.CanonicalType.UnqualifiedDesugaredTypereturns aBuiltinTypethat still representsconst int.Poking around in the sources suggests that the issue is in the fact that
IsSugaredreturnsfalsefor qualified types. What I'd really like here is to be able to get aTypeobject forHandle.UnqualifiedType, which doesn't seem to exist at the moment.