This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Updated: [Patch, c* ,ObjC*] handle string objects in format checking.



On 31 Oct 2010, at 20:18, IainS wrote:
What do you mean ? __attribute__((format (NSString, 1, 2))) works
on Apple (using LLVM I think, I don't have an Apple but I know it's
there) and it works as expected. The standard example is NSLog
(in much the same way as the standard example of the printf format
is printf) and that is very well-defined. GNUstep has NSLog and I can't
wait for the compiler to check that the arguments passed to NSLog
match the format string. ;-)

Hm - maybe sth LLVM-specific.. I've not looked too hard at that code.

it works with clang on darwin10 - OK that's handy, a reference platform.


Iain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]