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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

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
<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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to