hanchenye-llvm-project/clang/test/Modules
Richard Smith 645d755d3e Fix handling of module imports adding names to a DeclContext after qualified
name lookup has been performed in that context (this probably only happens in
C++).

1) Whenever we add names to a context, set a flag on it, and if we perform
lookup and discover that the context has had a lookup table built but has the
flag set, update all entries in the lookup table with additional names from
the external source.

2) When marking a DeclContext as having external visible decls, mark the
context in which lookup is performed, not the one we are adding. These won't
be the same if we're adding another copy of a pre-existing namespace.

llvm-svn: 174577
2013-02-07 03:37:08 +00:00
..
Inputs Fix handling of module imports adding names to a DeclContext after qualified 2013-02-07 03:37:08 +00:00
auto-module-import.m Don't infer a submodule for a framework's private header, at least for now. 2012-01-13 16:54:27 +00:00
autolink.m Add a comment for Daniel 2013-01-17 01:58:31 +00:00
build-fail-notes.m Add the module name to the 'incomplete umbrella header' warning. 2013-01-04 18:58:28 +00:00
compiler_builtins.m clang/test/Modules/compiler_builtins.m: Mark this as XFAIL:win32 for now. Investigating. 2013-01-17 01:07:09 +00:00
cstd.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
cycles.c Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
decldef.mm Provide Decl::getOwningModule(), which determines the (sub)module in 2013-01-12 01:29:50 +00:00
diamond-pch.c Eliminate the uglified keyword __import_module__ for importing 2012-01-03 19:32:59 +00:00
diamond.c Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
direct-module-import.m Have the parser initialize Sema before it consumes the first 2012-11-05 23:58:27 +00:00
driver.c
epic-fail.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
global_index.m Enable the global module index by default. Introduce the 2013-01-28 18:38:02 +00:00
header-import.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
ignored_macros.m Be a little more permissive with -fmodules-ignore-macro= by removing everything after the second '=' if it is there. 2013-02-07 01:18:48 +00:00
import-decl.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
inferred-frameworks.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
inferred-submodules.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
irgen.c Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
linkage-merge.m When name lookup for a redeclaration finds declarations that are known 2013-01-09 00:47:56 +00:00
load_failure.c Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
lookup.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
lookup.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
macros.c [PCH] Temporarily disable the "ambiguous macro" warning that is currently bogus with a PCH 2013-01-23 18:21:56 +00:00
method_pool.m Teach global selector lookup to ignore hidden methods, which occur 2013-01-16 18:47:38 +00:00
modify-module.m clang/test: Suppress two tests on win32 for now, since, not sure, in r169829 to r169831. 2012-12-12 00:51:38 +00:00
module-private.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
namespaces.cpp Fix handling of module imports adding names to a DeclContext after qualified 2013-02-07 03:37:08 +00:00
normal-module-map.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
objc-categories.m Treat hidden Objective-C protocol definitions as if they were 2013-01-17 00:38:46 +00:00
objc_redef.m Merge "special" types from different modules in the AST reader. 2013-02-01 23:45:03 +00:00
on-demand-build.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
on-demand-macros.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
redecl-merge.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
redecl-namespaces.mm Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
redeclarations.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
requires.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
subframeworks.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
submodules-preprocess.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
submodules.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
submodules.m Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
templates.mm Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00
wildcard-submodule-exports.cpp Use @import rather than @__experimental_modules_import, since the 2012-12-11 22:11:52 +00:00