diff options
| author | Dmitri Gribenko <gribozavr@gmail.com> | 2013-11-04 21:51:33 +0000 |
|---|---|---|
| committer | Dmitri Gribenko <gribozavr@gmail.com> | 2013-11-04 21:51:33 +0000 |
| commit | e9bcf5b7b1f3df4e303f4d17c8fef62882ae848f (patch) | |
| tree | 9edf30dd0f68608aa481a78bfe487f8613a31e1e /clang/test/Modules/Inputs/recursive_visibility_c.h | |
| parent | d1382b6c31bac564c784a5d6da0c2449bbf94d7e (diff) | |
| download | bcm5719-llvm-e9bcf5b7b1f3df4e303f4d17c8fef62882ae848f.tar.gz bcm5719-llvm-e9bcf5b7b1f3df4e303f4d17c8fef62882ae848f.zip | |
Include non-explicit submodules in exported module list
This change fixes Richard's testcase for r193815. Now we include non-explicit
submodules into the list of exports.
The test failed previously because:
- recursive_visibility_a1.inner is not imported (only recursive_visibility_a1 is),
- thus the 'inner' submodule is not showing up in any of the import lists,
- and because of this getExportedModules() is not returning the
correct module set -- it only considers modules that are imported.
The fix is to make Module::getExportedModules() include non-explicit submodules
into the list of exports.
llvm-svn: 194018
Diffstat (limited to 'clang/test/Modules/Inputs/recursive_visibility_c.h')
| -rw-r--r-- | clang/test/Modules/Inputs/recursive_visibility_c.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/recursive_visibility_c.h b/clang/test/Modules/Inputs/recursive_visibility_c.h new file mode 100644 index 00000000000..a978a3c0a56 --- /dev/null +++ b/clang/test/Modules/Inputs/recursive_visibility_c.h @@ -0,0 +1,5 @@ +@import recursive_visibility_b; +template<template<typename T> class Y> void g() { + f(typename Y<A1_Inner::X>::type{}); + f(typename Y<A2_More_Inner::X>::type{}); +} |

