]> granicus.if.org Git - clang/commit
Improvements to the ASTImporter to support LLDB top-level Clang expressions.
authorSean Callanan <scallanan@apple.com>
Mon, 28 Mar 2016 21:43:01 +0000 (21:43 +0000)
committerSean Callanan <scallanan@apple.com>
Mon, 28 Mar 2016 21:43:01 +0000 (21:43 +0000)
commitcf8ccff57c5f2f69723241eabd330f90b96bf66f
tree02e5cf2ecfdc57c2ab02e1c14e41e7055eafd333
parent0ca9501cf55fb80b0517135f426d51f529b62e7b
Improvements to the ASTImporter to support LLDB top-level Clang expressions.

The testcase for this is in LLDB, adeed by r264662.

This patch adds support for a variety of new expression types to the AST
importer, mostly related to C++.  It also adds support for importing lambdas
correctly, and adds support for importing the attributes attached to any Decl.

Finally, the patch adds a new templated function to ASTNodeImporter that imports
arbitrary arrays of importable things into a bump-allocated array attached to
getToContext().  This is a pattern we see at many places in ASTNodeImporter;
rather than do it slightly differently at each point, this function does it one
way.

<rdar://problem/22864976>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264669 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp