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 = [](){}) {}
Paths
| Differential D64073
[ASTImporter] Fix import of lambda in function param ClosedPublic Authored by martong on Jul 2 2019, 6:20 AM.
Details Summary The current import implementation fails to import the definition of a template <typename F> void f(F L = [](){}) {}
Diff Detail
Event Timelinemartong added a child revision: D64078: [ASTImporter] Fix structural ineq of lambdas with different sloc.Jul 2 2019, 6:52 AM Comment Actions Thanks for the review Alexei!
This revision is now accepted and ready to land.Jul 7 2019, 2:56 PM Closed by commit rL365315: [ASTImporter] Fix import of lambda in function param (authored by martong). · Explain WhyJul 8 2019, 5:49 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 208377 cfe/trunk/lib/AST/ASTImporter.cpp
cfe/trunk/unittests/AST/ASTImporterTest.cpp
|