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
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.
The text was updated successfully, but these errors were encountered:
I think the core issue here is that ClangSharp does not have a QualType equivalent; instead, a Type represents a full QualType, but only mirrors the API of Clang's Type*. As I mentioned, I think this is resolvable by simply exposing UnqualifiedType on Type.
Example:
Given the decl for
g
in variablegDecl
,gDecl.ReturnType.CanonicalType.PointeeType.CanonicalType.UnqualifiedDesugaredType
returns aBuiltinType
that still representsconst int
.Poking around in the sources suggests that the issue is in the fact that
IsSugared
returnsfalse
for qualified types. What I'd really like here is to be able to get aType
object forHandle.UnqualifiedType
, which doesn't seem to exist at the moment.The text was updated successfully, but these errors were encountered: