[LLVMbugs] [Bug 13670] New: -Wdocumentation: do not suggest parameter fixit with parameter already mentioned

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 22 16:44:08 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13670

             Bug #: 13670
           Summary: -Wdocumentation: do not suggest parameter fixit with
                    parameter already mentioned
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kremenek at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat t.c
/// \brief A function.
/// \param X an argument
/// \param Y an argument
int foo(int X);

$ clang -fsyntax-only -Wdocumentation t.c
t.c:3:12: warning: parameter 'Y' not found in the function declaration
[-Wdocumentation]
/// \param Y an argument
           ^
t.c:3:12: note: did you mean 'X'?
/// \param Y an argument
           ^
           X
1 warning generated.


We should not be suggesting 'X' as a FixIt, since it is already covered by
another \param.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list