llvm-project/clang/test/Import
Sean Callanan 9092d4795d [ASTImporter] Improve handling of incomplete types
ASTImporter has some bugs when it's importing types 
that themselves come from an ExternalASTSource. This 
is exposed particularly in the behavior when 
comparing complete TagDecls with forward 
declarations. This patch does several things:

- Adds a test case making sure that conflicting 
  forward-declarations are resolved correctly;
- Extends the clang-import-test harness to test 
  two-level importing, so that we make sure we 
  complete types when necessary; and
- Fixes a few bugs I found this way. Failure to 
  complete types was one; however, I also discovered 
  that complete RecordDecls aren't properly added to 
  the redecls chain for existing forward 
  declarations.

llvm-svn: 302975
2017-05-13 00:46:33 +00:00
..
clang-flags Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
conflicting-struct [ASTImporter] Improve handling of incomplete types 2017-05-13 00:46:33 +00:00
empty-struct Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
error-in-expression Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
error-in-import Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
forward-declared-struct [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
in-class-initializer Added an Importer test for in-class member initializers. 2017-04-27 18:10:29 +00:00
member-in-struct [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
missing-import Testbed and skeleton of a new expression parser 2016-12-22 20:03:14 +00:00
multiple-forward-declarations [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
overloaded-function [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
struct-in-namespace [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00
template-specialization [clang-import-test] Lookup inside contexts 2017-04-11 19:33:35 +00:00