diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2019-03-06 02:50:46 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2019-03-06 02:50:46 +0000 |
commit | 9dda8f540c8e60b2fec9a23b6885cd4c12750da0 (patch) | |
tree | a6c3fc3f3dcfbd7c186cef20a3fe9415851eba34 /clang/test/Modules/Inputs | |
parent | 4cc9ff12455496e8f415381315872e8ae797e520 (diff) | |
download | bcm5719-llvm-9dda8f540c8e60b2fec9a23b6885cd4c12750da0.tar.gz bcm5719-llvm-9dda8f540c8e60b2fec9a23b6885cd4c12750da0.zip |
Modules: Add -Rmodule-import
Add a remark for importing modules. Depending on whether this is a
direct import (into the TU being built by this compiler instance) or
transitive import (into an already-imported module), the diagnostic has
two forms:
importing module 'Foo' from 'path/to/Foo.pcm'
importing module 'Foo' into 'Bar' from 'path/to/Foo.pcm'
Also drop a redundant FileCheck invocation in Rmodule-build.m that was
using -Reverything, since the notes from -Rmodule-import were confusing
it.
https://reviews.llvm.org/D58891
llvm-svn: 355477
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r-- | clang/test/Modules/Inputs/Rmodule-import/A.h | 2 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/Rmodule-import/B.h | 2 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/Rmodule-import/C.h | 1 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/Rmodule-import/D.h | 1 | ||||
-rw-r--r-- | clang/test/Modules/Inputs/Rmodule-import/module.modulemap | 4 |
5 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/Rmodule-import/A.h b/clang/test/Modules/Inputs/Rmodule-import/A.h new file mode 100644 index 00000000000..2b9dab85877 --- /dev/null +++ b/clang/test/Modules/Inputs/Rmodule-import/A.h @@ -0,0 +1,2 @@ +// A +#include "B.h" diff --git a/clang/test/Modules/Inputs/Rmodule-import/B.h b/clang/test/Modules/Inputs/Rmodule-import/B.h new file mode 100644 index 00000000000..a2711d4043f --- /dev/null +++ b/clang/test/Modules/Inputs/Rmodule-import/B.h @@ -0,0 +1,2 @@ +// B +#include "C.h" diff --git a/clang/test/Modules/Inputs/Rmodule-import/C.h b/clang/test/Modules/Inputs/Rmodule-import/C.h new file mode 100644 index 00000000000..6f30d4750ea --- /dev/null +++ b/clang/test/Modules/Inputs/Rmodule-import/C.h @@ -0,0 +1 @@ +// C diff --git a/clang/test/Modules/Inputs/Rmodule-import/D.h b/clang/test/Modules/Inputs/Rmodule-import/D.h new file mode 100644 index 00000000000..61177ec3a3d --- /dev/null +++ b/clang/test/Modules/Inputs/Rmodule-import/D.h @@ -0,0 +1 @@ +// D diff --git a/clang/test/Modules/Inputs/Rmodule-import/module.modulemap b/clang/test/Modules/Inputs/Rmodule-import/module.modulemap new file mode 100644 index 00000000000..cf7cf1f7e56 --- /dev/null +++ b/clang/test/Modules/Inputs/Rmodule-import/module.modulemap @@ -0,0 +1,4 @@ +module A { header "A.h" } +module B { header "B.h" } +module C { header "C.h" } +module D { header "D.h" } |