<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 --- - False positive in -Wmsvc-include"
href="http://llvm.org/bugs/show_bug.cgi?id=18481">18481</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>False positive in -Wmsvc-include
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rnk@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>lantictac@gmail.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>This warning has false positives if the MSVC search rules also search a
directory passed as a -I option on the command line.
Consider:
Compile with -Ilib/Target/AArch64
lib/Target/AArch64/AArch64AsmPrinter.cpp #include
"InstPrinter/AArch64InstPrinter.h"
lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h #include
"Utils/AArch64BaseInfo.h"
lib/Target/AArch64/Utils/AArch64BaseInfo.h
The problem is that Includers searches these directories:
..\lib\Target\AArch64/InstPrinter
..\lib\Target\AArch64
Then it would search all the directories in -I on the command line, but it
doesn't get there because it finds AArch64BaseInfo.h while searching Includers.
We shouldn't emit a warning if we would've found it in SearchDirs.
Not sure how to do this straightforwardly.</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>