diff options
author | Sean Callanan <scallanan@apple.com> | 2016-05-14 05:43:57 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2016-05-14 05:43:57 +0000 |
commit | 041cceb019cf906a9caa1e485bec0843530cff6a (patch) | |
tree | 89ec9ca959867313b488c3435982ec2bba6d2c92 /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | a3cd590644305727bc54fd63334b1ce0a0401999 (diff) | |
download | bcm5719-llvm-041cceb019cf906a9caa1e485bec0843530cff6a.tar.gz bcm5719-llvm-041cceb019cf906a9caa1e485bec0843530cff6a.zip |
Handle injected class names in the ASTImporter.
Every class as parsed by Clang has a forward declaration of itself as a member:
class A {
class A;
...
}
but when the parser generates this it ensures that the RecordTypes for the two
are the same. This makes (among other things) inheritance work. This patch
fixes a bug where the ASTImporter generated two separate RecordTypes when
importing the class and the contained forward declaration, and adds a test case.
Thanks to Doug Gregor for advice on this.
llvm-svn: 269551
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions