<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 --- - Preprocessing with ccc-analyzer fails in verbose mode"
href="http://llvm.org/bugs/show_bug.cgi?id=16414">16414</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Preprocessing with ccc-analyzer fails in verbose mode
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.2
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</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>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>kmowery@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10736" name="attach_10736" title="patch for ccc-analyzer preprocessor mode">attachment 10736</a> <a href="attachment.cgi?id=10736&action=edit" title="patch for ccc-analyzer preprocessor mode">[details]</a></span>
patch for ccc-analyzer preprocessor mode
If scan-build is set in verbose mode (and sets the CCC_ANALYZER_LOG environment
variable) and ccc-analyzer is invoked in preprocessor mode (-E), ccc-analyzer
prints its invocation command and ruins the preprocessed file.
Since the preprocessor prints its output to STDOUT, ccc-analyzer should not
print is invocation to STDOUT as well.
I have attached a patch against ccc-analyzer that solves this issue, but it is
a little bit unclean. Basically, it checks the CCC_ANALYZER_LOG environment
variable only after it parses all its arguments.
I believe clang-3.3 has this issue as well, but other bugs are preventing me
from fully testing.</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>