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

Reply via email to