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

2019-07-22 Thread Richard Smith via cfe-users
On Wed, 17 Jul 2019 at 23:20, Victor “LOST” Milovanov via cfe-users <
cfe-users@lists.llvm.org> wrote:

> 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`).
>

You could build a suitable QualType by calling
Sema::CheckTypenameType(ETK_Typename, U->getTypenameLoc(),
U->getQualifierLoc(), U->getIdentifier(), U->getLocation()).


> 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
> ___
> cfe-users mailing list
> cfe-users@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
>
___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


[cfe-users] clang-cl choosing VC++ backend on Windows

2019-07-22 Thread Edward Diener via cfe-users
Given multiple installations installed of Visual Studio/VC++ on Windows, 
with none of them normally in the PATH, how does clang-cl choose which 
one to use at compile/link time as the clang backend ?


___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users


[cfe-users] clang-cl choosing VC++ backend on Windows

2019-07-22 Thread Edward Diener via cfe-users
Given multiple installations installed of Visual Studio on Windows, with 
none of them normally in the PATH, how does clang-cl choose which one to 
use at compile/link time as the VC++ backend ?


___
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users