<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 - llvm-cov does not demangle template instantiations"
   href="https://bugs.llvm.org/show_bug.cgi?id=42608">42608</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>llvm-cov does not demangle template instantiations
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>8.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>thomas.braun@virtuell-zuhause.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Consider the following template

```
template <typename T>
void DoStuff(T)
{
;
}
```

in the coverage report with -show-instantiations enabled and llvm-cxxfilt as
demangler I do get a properly demangled name for the function summary.

But the separate instantiations do not get demangled function names.

>From a very course look at the code it looks like that in [1] only the names of
the functions are feed into the demangler, but the instantion groups from [2]
are missed.

[1]:
<a href="https://github.com/llvm-mirror/llvm/blob/4385104c44f7189db633f82379f596dae90ff6e9/tools/llvm-cov/CodeCoverage.cpp#L904">https://github.com/llvm-mirror/llvm/blob/4385104c44f7189db633f82379f596dae90ff6e9/tools/llvm-cov/CodeCoverage.cpp#L904</a>
[2]:
<a href="https://github.com/llvm-mirror/llvm/blob/6b547686c5410b7528212e898fe30fc7ee7a70a3/include/llvm/ProfileData/Coverage/CoverageMapping.h#L583">https://github.com/llvm-mirror/llvm/blob/6b547686c5410b7528212e898fe30fc7ee7a70a3/include/llvm/ProfileData/Coverage/CoverageMapping.h#L583</a></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>