diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-02-15 23:54:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-02-15 23:54:17 +0000 |
commit | ea35d11905f756ad33b87bd89cd3ac1e7ce57994 (patch) | |
tree | 3d50c67c53cde3ca1f9824d098c8c2b1028a162a /lib/Frontend/ASTMerge.cpp | |
parent | b9bbd592c7ea72ada8d982e40a729beb9b53371e (diff) |
Cope with anonymous tags defined within declarators by structurally
comparing their types under the assumption that they are equivalent,
rather than importing the types and then checking for compatibility. A
few minor tweaks here:
- Teach structural matching to handle compatibility between
function types with prototypes and those without prototypes.
- Teach structural matching that an incomplete record decl is the
same as any other record decl with the same name.
- Keep track of pairs of declarations that we have already checked
(but failed to find as structurally matching), so we don't emit
diagnostics repeatedly.
- When importing a typedef of an anonymous tag, be sure to link the
imported tag type to its typedef.
With these changes, we survive a repeated import of <stdlib.h> and
<stdio.h>. Alas, the ASTNodeImporter is getting a little grotty.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTMerge.cpp')
0 files changed, 0 insertions, 0 deletions