<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/119282>119282</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-cov show HTML: Inconsistent results between per-file indices and each source file view
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chapuni
</td>
</tr>
</table>
<pre>
Apparently, line counts differ with expansions. The index doesn't look up header files that don't include functions but macros.
I guess actually the difference would come from the behavior difference between `getCoverageForFile` (source view) and `getCoverageForFunction` (reports and indices).
I think the index should use `getCoverageForFile`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ksFunDAQhp_GXEZBMLBZOHDYpkKN1N7yAsYesBuvjTz2bvL2FYSmPbQnJOaf8Tfz_5LZLp5oEKcv4vS1kDmZEAdl5Jq9Laag34fLuspIPrl3gU_grCdQIfvEoO08U4S7TQbobZWebfBcwoshsF7TG-hA7AWeE7gQXiGvYEhqijBbRwzJyAQ6fCisVy5rgjl7lbZBMOUEV6li4FJUF1FdnmHJxAxSpSyde4dk6KAgrwjuITsNKlwJ5hiue3kiI282xL91E6U7kQfxWC2UnsKNolxoDHG0jsRjBQI7Djkqgpulu8AepNf_kB-oR0ukNcTEu9Z6bRWxwP6TPRnrX3emj-Ow2XEz039BykIPje6bXhY01OemOXdt37SFGbCjSc1qOveosJ-7_ozUtXKaztufri7sgBW2NVY94unUtGVLuqqq-bHrW93NdS3aiq7SutK527UMcSksc6ahrnvssHByIsd7MBA93WGvCsQtJ3HYmh6mvLBoK2c58Z8xySZHHwIVbtuad_j28uO7aC7w7FXwbDmRTxCJs0v8acdK8WELxu_j7YckqQwcZuzFzZEiRzeYlFYWzUXgKHBcbDJ5KlW4Chy3x4_PwxrDT1JJ4LhvwALHY8XbgL8CAAD__wGxA8k">