<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 - Weird code coverage display for "#if" inside function"
href="https://bugs.llvm.org/show_bug.cgi?id=34166">34166</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Weird code coverage display for "#if" inside function
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</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>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>efriedma@codeaurora.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, vsk@apple.com
</td>
</tr></table>
<p>
<div>
<pre>llvm-cov show output for a simple testcase:
1| 1|int main() {
2| 1| if (0) {
3| 0|#if 0
4| |#endif
5| 1| }
6| 1|return 0;
7| 1|}
It looks even weirder with highlighting: the "#" of "#if 0" and the "endif" of
"#endif" are highlighted red.
I guess this behavior is inherited from the clang preprocessor, to some extent?
It seems like we should be able to do better, though... preprocessor
directives have to be on their own line, so we should be able to exclude the
entire line containing the "#if", and the entire line containing the "#endif".</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>