llvm-project/clang/test/Import
Lang Hames 8ca265f4a1 Call setMustBuildLookupTable on TagDecls in ExternalASTMerger
Summary:
setMustBuildLookupTable should be called on imported TagDecls otherwise we may fail
to import their member decls (if they have any).

Not calling the setMustBuildLookupTable method results in a failure in the attached test
case when lookup for the 'x' member fails on struct S, which hasn't had its decls imported
elsewhere. (By contrast the member-in-struct testcase hasn't run into this issue
because the import of its decls is triggered when the struct instance is defined, and the
member access follows this).

Reviewers: spyffe, rsmith

Reviewed By: spyffe, rsmith

Differential Revision: https://reviews.llvm.org/D34253

llvm-svn: 305619
2017-06-17 00:12:38 +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
indirect-struct-member-access Call setMustBuildLookupTable on TagDecls in ExternalASTMerger 2017-06-17 00:12:38 +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