Skip to content

UnqualifiedDesugaredType does not return an unqualified type #562

Description

@nike4613

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions