summaryrefslogtreecommitdiffstats
path: root/test/Modules
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-01-06 17:19:32 +0000
committerDouglas Gregor <dgregor@apple.com>2012-01-06 17:19:32 +0000
commit303aae98a5a27f2595d023c0b4e1484bf2c0ee57 (patch)
tree954acb1d32638642a0d7e87250ccebc242b7cb0e /test/Modules
parentf46ca24d6633983a78d0ce01af91d4967d99f6c6 (diff)
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). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147662 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules')
-rw-r--r--test/Modules/Inputs/def-include.h13
-rw-r--r--test/Modules/Inputs/def.h5
2 files changed, 14 insertions, 4 deletions
diff --git a/test/Modules/Inputs/def-include.h b/test/Modules/Inputs/def-include.h
new file mode 100644
index 0000000000..9e0e575e20
--- /dev/null
+++ b/test/Modules/Inputs/def-include.h
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+struct B {
+ int b1;
+};
diff --git a/test/Modules/Inputs/def.h b/test/Modules/Inputs/def.h
index 7c1a99ef7e..6d06b08125 100644
--- a/test/Modules/Inputs/def.h
+++ b/test/Modules/Inputs/def.h
@@ -1,4 +1,4 @@
-
+#include "def-include.h"
@@ -8,7 +8,4 @@
}
@end
-struct B {
- int b1;
-};