Ericsson / clang

Cross Translation Unit analysis capability for Clang Static Analyzer. (Fork of official clang at http://llvm.org/git/clang)
http://clang.llvm.org/
Other
15 stars 10 forks source link

[ASTImporter] Fix import of lambda in function param #646

Closed martong closed 5 years ago

martong commented 5 years ago

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 = [](){}) {}
martong commented 5 years ago

https://reviews.llvm.org/D64073