[PATCH] D17941: add fix-its for format-security warnings

Bob Wilson via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 8 09:10:27 PST 2016


bob.wilson added a comment.

In http://reviews.llvm.org/D17941#369698, @bcraig wrote:

> What about wprintf?  Do we currently warn for wprintf(str)?  If so, then the fixit probably needs to involve L"%ls".


Darwin does not mark wprintf functions with an attribute. Linux (at least the version I checked) has an attribute that is commented out, but it uses a distinct "__wprintf__" format type. Clang does not currently support that format type. If that is added in the future, you are right that the fix-it will need to be different.


http://reviews.llvm.org/D17941





More information about the cfe-commits mailing list