[LLVMbugs] [Bug 11857] New: "missing argument" diagnostic should include argument name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 25 15:48:04 PST 2012


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

             Bug #: 11857
           Summary: "missing argument" diagnostic should include argument
                    name
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I got this today:


Instructions.cpp:1609:36: error: too few arguments to function call, expected
1,
      have 0
      if (CDS->getElementAsInteger() >= V1Size*2)
          ~~~~~~~~~~~~~~~~~~~~~~~~ ^

In the special case of missing one argument, it would be spiffy to emit
something like:

error: too few arguments to function call, argument 'idx' was not specified

where the name of the argument comes from the function/method prototype.

-- 
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