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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

Reply via email to