<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - print warnings normally in /fallback mode"
href="https://bugs.llvm.org/show_bug.cgi?id=35959">35959</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>print warnings normally in /fallback mode
</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>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>trass3r@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>clang prints warning(clang) in fallback mode so MSBuild does not fail the build
because of errors printed by clang. But actually warnings could and should be
printed normally (so MSBuild/VS picks them up) as I still want to benefit from
clang's rich diagnostics even if it fails at some point.
Proof-of-concept:
Index: TextDiagnostic.cpp
===================================================================
--- TextDiagnostic.cpp (revision 322481)
+++ TextDiagnostic.cpp (working copy)
@@ -725,7 +725,7 @@
// makes it more clear whether a message is coming from clang or cl.exe,
// and it prevents MSBuild from concluding that the build failed just
because
// there is an "error:" in the output.
- if (CLFallbackMode)
+ if (CLFallbackMode && Level >= DiagnosticsEngine::Error)
OS << "(clang)";
OS << ": ";</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>