summaryrefslogtreecommitdiff
path: root/test/Modules/declare-use2.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2013-12-06 09:25:54 +0000
committerDaniel Jasper <djasper@google.com>2013-12-06 09:25:54 +0000
commit69e46036a391a12d2eb3149569c335ce3634bf31 (patch)
tree784b47391470aa0167449186490ec33b12c6277d /test/Modules/declare-use2.cpp
parent5fe64f157d3e0ff27e538b4a8f037a97387e4de1 (diff)
downloadclang-69e46036a391a12d2eb3149569c335ce3634bf31.tar.gz
Allow string literals as module names.
In order to make the migration to modules easier, it seems to be helpful to allow a 1:1 mapping between target names of a current build system and the corresponding C++ modules. As such targets commonly contain characters like "-". ":" and "/", allowing arbitrary quote-escaped strings seems to be a straightforward option. After several offline discussions, the precise mechanisms for C++ module names especially regarding submodules and import statements has yet to be determined. Thus, this patch only enables string literals as names inside the module map files which can be used by automatic module import (through #include). Also improve the error message on missing use-declarations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196573 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Modules/declare-use2.cpp')
-rw-r--r--test/Modules/declare-use2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Modules/declare-use2.cpp b/test/Modules/declare-use2.cpp
index a2ec55e5e5..15c57ca36d 100644
--- a/test/Modules/declare-use2.cpp
+++ b/test/Modules/declare-use2.cpp
@@ -3,5 +3,5 @@
#include "h.h"
#include "e.h"
-#include "f.h" // expected-error {{use of a module not declared used}}
+#include "f.h" // expected-error {{does not depend on a module exporting}}
const int h2 = h1+e+f;