[PATCH] D64073: [ASTImporter] Fix import of lambda in function param

Gabor Marton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 2 06:20:39 PDT 2019


martong created this revision.
martong added a reviewer: a_sidorin.
Herald added subscribers: cfe-commits, gamesh411, Szelethus, dkrupp, rnkovacs.
Herald added a reviewer: a.sidorin.
Herald added a reviewer: shafik.
Herald added a project: clang.

The current import implementation fails to import the definition of a
lambda class if the lambda class is defined in a function param.
E.g., the lambda class below will be imported without any methods:

  template <typename F>
  void f(F L = [](){}) {}


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64073

Files:
  clang/lib/AST/ASTImporter.cpp
  clang/unittests/AST/ASTImporterTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64073.207540.patch
Type: text/x-patch
Size: 3793 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190702/0233991b/attachment.bin>


More information about the cfe-commits mailing list