<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 - -Wdocumentation produces false positive for \tparam with instantiated function"
href="https://bugs.llvm.org/show_bug.cgi?id=35144">35144</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Wdocumentation produces false positive for \tparam with instantiated function
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>5.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>techmeology@techmeology.co.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=19363" name="attach_19363" title="Reproducer">attachment 19363</a> <a href="attachment.cgi?id=19363&action=edit" title="Reproducer">[details]</a></span>
Reproducer
Steps to reproduce:
1) Compile the `bug.cpp` with `clang++ -Wdocumentation -c bug.cpp` using Clang
5.0
2) Comment out line 7, and recompile as in step 1.
Expected results:
No warning should be emitted for either of the two steps above.
Actual results:
The following warning is emitted at step 1, but not step 2:
bug.cpp:2:5: warning: '\tparam' command used in a comment that is not attached
to a template declaration [-Wdocumentation]
* \tparam T The type of the inputs' elements.
^~~~~~
1 warning generated.</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>