[PATCH] D25820: [Sema][Objective-C] Formatting warnings should see through Objective-C message sends

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 09:22:08 PST 2018


benhamilton added a comment.

> That does look like a bug in the SDK, to me.

OK.  I'll file a Radar bug upstream; in the meantime, this means since this diff landed in 2016, clang has been raising `-Wformat-extra-args` when compiling any code which passes the result of `-[NSBundle localizedStringForKey:value:table:]` to `+[NSString stringWithFormat:]` and friends (which is a fairly common operation—any localized string with an argument will do this).

I assume Apple will fix this in the SDK the next time they integrate their fork of clang from master.


Repository:
  rL LLVM

https://reviews.llvm.org/D25820





More information about the cfe-commits mailing list