[LLVMbugs] [Bug 19913] New: -Wdocumentation incorrectly warns "parameter '...' not found in the function declaration" for template functions.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sun Jun 1 15:45:15 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19913
Bug ID: 19913
Summary: -Wdocumentation incorrectly warns "parameter '...' not
found in the function declaration" for template
functions.
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: toojays at toojays.net
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
jscott at 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 at 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 at 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
<http://lists.cs.uiuc.edu/pipermail/cfe-users/2013-October/000236.html>.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140601/4e50a8a3/attachment.html>
More information about the llvm-bugs
mailing list