diff options
author | Daniel Jasper <djasper@google.com> | 2013-09-11 07:20:44 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-09-11 07:20:44 +0000 |
commit | 97292843d0aa02785043c0580f46c6d7890575dd (patch) | |
tree | ec47e1b5f101d979a844f0e347d68c160a94dcb7 /clang/test/Modules/Inputs/modular_maps/a.h | |
parent | c0070a43202b451f78d099a3adc66e7edc45a53e (diff) | |
download | bcm5719-llvm-97292843d0aa02785043c0580f46c6d7890575dd.tar.gz bcm5719-llvm-97292843d0aa02785043c0580f46c6d7890575dd.zip |
Support for modular module-map-files
This patch is the first step to make module-map-files modular (instead
of requiring a single "module.map"-file per include directory). This
step adds a new "extern module" declaration that enables
module-map-files to reference one another along with a very basic
implementation.
The next steps are:
* Combine this with the use-declaration (from
http://llvm-reviews.chandlerc.com/D1546) in order to only load module
map files required for a specific compilation.
* Add an additional flag to start with a specific module-map-file (instead
of requiring there to be at least one "module.map").
Review: http://llvm-reviews.chandlerc.com/D1637
llvm-svn: 190497
Diffstat (limited to 'clang/test/Modules/Inputs/modular_maps/a.h')
-rw-r--r-- | clang/test/Modules/Inputs/modular_maps/a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/modular_maps/a.h b/clang/test/Modules/Inputs/modular_maps/a.h new file mode 100644 index 00000000000..a36dc1b59d6 --- /dev/null +++ b/clang/test/Modules/Inputs/modular_maps/a.h @@ -0,0 +1,4 @@ +#ifndef A_H +#define A_H +const int a = 2; +#endif |