[cfe-users] Getting underlying type for `using typename` declaration

Victor “LOST” Milovanov via cfe-users cfe-users at lists.llvm.org
Wed Jul 17 23:20:49 PDT 2019


Hi CFE users!

I am trying to get a `QualType` instance from `UnresolvedUsingTypenameDecl`. Unlike `TypeAliasDecl` `UnresolvedUsingTypenameDecl` does not have a `getUnderlyingType` method.

I could not find a way to construct one from the `DeclarationNameInfo` (`getNameInfo`) and `NestedNameSpecifier` (`getQualifier`).

The library I am working on already supports type aliases, and I was hoping I could treat `using typename` declarations in a similar way. Not sure if it is the right way though.

Regards,
Victor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20190717/d5444276/attachment.html>


More information about the cfe-users mailing list