diff options
author | Gabor Marton <martongabesz@gmail.com> | 2018-12-17 13:53:12 +0000 |
---|---|---|
committer | Gabor Marton <martongabesz@gmail.com> | 2018-12-17 13:53:12 +0000 |
commit | 54058b5055c16fb700854223d6453a35c3c59ea8 (patch) | |
tree | 2c0768addf033b92cf69fd42d3cabb68b378af79 /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | 193429ea15a60cb5c17e3ce9e2c9b3521eaf5d90 (diff) | |
download | bcm5719-llvm-54058b5055c16fb700854223d6453a35c3c59ea8.tar.gz bcm5719-llvm-54058b5055c16fb700854223d6453a35c3c59ea8.zip |
[ASTImporter] Add importer specific lookup
Summary:
There are certain cases when normal C/C++ lookup (localUncachedLookup)
does not find AST nodes. E.g.:
Example 1:
template <class T>
struct X {
friend void foo(); // this is never found in the DC of the TU.
};
Example 2:
// The fwd decl to Foo is not found in the lookupPtr of the DC of the
// translation unit decl.
struct A { struct Foo *p; };
In these cases we create a new node instead of returning with the old one.
To fix it we create a new lookup table which holds every node and we are
not interested in any C++ specific visibility considerations.
Simply, we must know if there is an existing Decl in a given DC.
Reviewers: a_sidorin, a.sidorin
Subscribers: mgorny, rnkovacs, dkrupp, Szelethus, cfe-commits
Differential Revision: https://reviews.llvm.org/D53708
llvm-svn: 349351
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions