ilya-biryukov added a comment.

In https://reviews.llvm.org/D44480#1117230, @nik wrote:

> In https://reviews.llvm.org/D44480#1117147, @cpplearner wrote:
>
> > Does `getAs<AutoType>()` work correctly with function returning `auto&`?
>
>
> the "getAs<AutoType>()" version will skip the function body and generate an 
> error message on use, but "FD->getReturnType()->getContainedDeducedType()" 
> works fine (will not skip the body, as it should here). OK, so now I have a 
> rough idea what the "Contained" was referring too :)


Yep, `getContainedDeducedType()` call is definitely necessary. Added the tests 
for discussed cases in https://reviews.llvm.org/rL333735.


Repository:
  rL LLVM

https://reviews.llvm.org/D44480



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to