[cfe-dev] Extending printf format string checking to cover ObjC format strings in NSLog
devlists at shadowlab.org
Mon Jun 16 03:42:47 PDT 2008
Le 16 juin 08 à 12:28, Nikita Zhuk a écrit :
> Current printf format string checking is very useful but it's
> limited to printf -style functions which use C format strings. I
> would like to propose extending this functionality to cover
> Objective-C format strings in NSLog function. A simple
> implementation of this extension is attached to this message.
> Speaking of format strings in ObjC, are there any plans to extend
> format string checking to cover ObjC methods which accept format
> strings as one of their arguments, such as various -[NSString
> initWithFormat:...] methods?
> Best regards,
> Nikita Zhuk
Note that '%@' is also supported in CoreFoundation fonctions:
CFStringCreateWithFormat() for example. If the format string checking
is extended, you may considere thoses cases and not limite it to objc
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2427 bytes
Desc: not available
More information about the cfe-dev