[LLVMbugs] [Bug 3265] New: You can' t know the number of arguments from the non_null attribute.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Dec 28 06:06:29 PST 2008


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

           Summary: You can't know the number of arguments from the non_null
                    attribute.
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bolzoni at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it


After calculating the AST of the following code:
---->
void f(char* p, char* q)
  __attribute__((nonnull (1)));
void f();
----<

The clients can't examine the value of the nonnull attribute of the second
declaration since they can not know the number of arguments.

I think it is pretty straightforward to fix since the NonNullAttr class do have
a `number of arguments' member, but being private it can't be read.
It is enough adding a get function.


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