diff options
| author | Douglas Gregor <dgregor@apple.com> | 2012-01-06 17:19:32 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2012-01-06 17:19:32 +0000 |
| commit | 224d8a74ae4087519f07479bb23de4a3ae53e24f (patch) | |
| tree | f52f7d1f1c63d7f756f2920948ee6fc8090cb688 /clang/test/Modules | |
| parent | dc90f07b902fe9c71f4c72e8efe951d32f5c0d6d (diff) | |
| download | bcm5719-llvm-224d8a74ae4087519f07479bb23de4a3ae53e24f.tar.gz bcm5719-llvm-224d8a74ae4087519f07479bb23de4a3ae53e24f.zip | |
When inferring a submodule ID during module creation, look up the
include stack to find the first file that is known to be part of the
module. This copes with situations where the module map doesn't
completely specify all of the headers that are involved in the module,
which can come up when there are very strange #include_next chains
(e.g., with weird compiler/stdlib headers like stdarg.h or float.h).
llvm-svn: 147662
Diffstat (limited to 'clang/test/Modules')
| -rw-r--r-- | clang/test/Modules/Inputs/def-include.h | 13 | ||||
| -rw-r--r-- | clang/test/Modules/Inputs/def.h | 5 |
2 files changed, 14 insertions, 4 deletions
diff --git a/clang/test/Modules/Inputs/def-include.h b/clang/test/Modules/Inputs/def-include.h new file mode 100644 index 00000000000..9e0e575e206 --- /dev/null +++ b/clang/test/Modules/Inputs/def-include.h @@ -0,0 +1,13 @@ + + + + + + + + + + +struct B { + int b1; +}; diff --git a/clang/test/Modules/Inputs/def.h b/clang/test/Modules/Inputs/def.h index 7c1a99ef7e6..6d06b081251 100644 --- a/clang/test/Modules/Inputs/def.h +++ b/clang/test/Modules/Inputs/def.h @@ -1,4 +1,4 @@ - +#include "def-include.h" @@ -8,7 +8,4 @@ } @end -struct B { - int b1; -}; |

