<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Module silently not created if contains missing file"
href="http://llvm.org/bugs/show_bug.cgi?id=21216">21216</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Module silently not created if contains missing file
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Modules
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>steveire@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>No warning is emitted if a module lists a missing file:
$ cat include/foo.map
module foo {
requires cplusplus
header "foo.h"
header "does_not_exist.h"
}
$ clang++ -E -fmodules -fmodule-map-file=include/foo.map -I include
-Weverything -pedantic test.cpp
# 1 "test.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 318 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test.cpp" 2
# 1 "include/foo.h" 1
static inline int foo() { return 1; }
# 3 "test.cpp" 2
int main(int, char **) {
return 0;
}
$ cat include/foo.map
module foo {
requires cplusplus
header "foo.h"
}
$ clang++ -E -fmodules -fmodule-map-file=include/foo.map -I include
-Weverything -pedantic test.cpp
# 1 "test.cpp"
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 318 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "test.cpp" 2
<module-includes>:1:1: warning: header 'include/foo.map' is included in module
'foo' but not listed in module map [-Wincomplete-module]
#include "include/foo.h"
^
@import foo; /* clang -E: implicit import for "include/foo.h" */
int main(int, char **) {
return 0;
}
1 warning generated.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>