<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 --- - -Wdocumentation incorrectly warns "parameter '...' not found in the function declaration" for template functions."
href="http://llvm.org/bugs/show_bug.cgi?id=19913">19913</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-Wdocumentation incorrectly warns "parameter '...' not found in the function declaration" for template functions.
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</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>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>toojays@toojays.net
</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>jscott@saaz:/tmp$ clang --version
Ubuntu clang version 3.4.1-1~exp1 (branches/release_34) (based on LLVM 3.4.1)
Target: x86_64-pc-linux-gnu
Thread model: posix
jscott@saaz:/tmp$ cat foo.cpp
/**
* Print a format string.
*
* @param[in] format Printf style format.
* @param[in] ... Printf style variable arguments.
*/
template<typename T>
void f (const T&, const char *format, ...)
{
}
jscott@saaz:/tmp$ clang -Wdocumentation -c foo.cpp
foo.cpp:5:15: warning: parameter '...' not found in the function declaration
[-Wdocumentation]
* @param[in] ... Printf style variable arguments.
^~~
1 warning generated.
A similar problem used to exist for non-template functions, but was fixed in
Clang 3.4, see
<<a href="http://lists.cs.uiuc.edu/pipermail/cfe-users/2013-October/000236.html">http://lists.cs.uiuc.edu/pipermail/cfe-users/2013-October/000236.html</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>