[PATCH] D11572: [Static Analyzer] Checker for OS X / iOS localizability issues

Anna Zaks zaks.anna at gmail.com
Wed Aug 5 16:58:46 PDT 2015


zaks.anna added inline comments.

================
Comment at: test/Analysis/localization-aggressive.m:202
@@ +201,3 @@
+// EmptyLocalizationContextChecker tests
+#define HOM(s) YOLOC(s)
+#define YOLOC(x) NSLocalizedString(x, nil)
----------------
How about something like this, where the last argument to the user defined macro is nil, but it has noting to do with the comment.

#define POSSIBLE_FALSE_POSITIVE(s, myarg) YOLOC(s)

..
POSSIBLE_FALSE_POSITIVE(@"Hello", nil)


http://reviews.llvm.org/D11572





More information about the cfe-commits mailing list