[PATCH] D42301: [ASTImporter] Support LambdaExprs and improve template support

Gábor Horváth via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 23 00:36:07 PST 2018


xazax.hun added a comment.

In https://reviews.llvm.org/D42301#984713, @a.sidorin wrote:

> > I do not see a test for the following changes:
> > 
> > - ASTImporter: don't add templated declarations into DeclContext
>
> It's in ASTImporterTest. It checks that the templated decl cannot be found in the enclosing TU.


Oh indeed, it looks likeI missed that, thanks :)

>> - ASTImporter: proper set ParmVarDecls for imported FunctionProtoTypeLoc
> 
> test/ASTMerge/function-cpp. If you remove the change, Sema will segfault.

Neat!


Repository:
  rC Clang

https://reviews.llvm.org/D42301





More information about the cfe-commits mailing list