summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-12-11 12:13:00 +0000
committerDaniel Jasper <djasper@google.com>2013-12-11 12:13:00 +0000
commit4eaf0a6ca46afcaeafe90dc3423f3e9e92046450 (patch)
treeee252c0bf0d2262beae176a022418d0913a50708 /clang/test
parent235dff7b630c9abcc57a338a816835c4eada5561 (diff)
downloadbcm5719-llvm-4eaf0a6ca46afcaeafe90dc3423f3e9e92046450.tar.gz
bcm5719-llvm-4eaf0a6ca46afcaeafe90dc3423f3e9e92046450.zip
Modules: Let -fmodules-decluse ignore headers that aren't in a module
Includes might always pull in arbitrary header or data files outside of modules. Among others, this includes builtin includes, which do not have a module (story) yet. Also cleanup implementation of ModuleMap::findModuleForHeader() to be non-recursive. llvm-svn: 197034
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/Modules/declare-use1.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Modules/declare-use1.cpp b/clang/test/Modules/declare-use1.cpp
index 49993cf488c..5fc43360ffa 100644
--- a/clang/test/Modules/declare-use1.cpp
+++ b/clang/test/Modules/declare-use1.cpp
@@ -4,4 +4,5 @@
#include "g.h"
#include "e.h"
#include "f.h" // expected-error {{module XG does not depend on a module exporting 'f.h'}}
-const int g2 = g1+e+f;
+#include "i.h"
+const int g2 = g1 + e + f + aux_i;
OpenPOWER on IntegriCloud