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

Kulpreet Chilana via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 6 15:44:22 PDT 2015


kulpreet updated this revision to Diff 31481.
kulpreet marked an inline comment as done.
kulpreet added a comment.

- By default (non-aggressive mode) the UnlocalizedStringChecker will ignore strings that are less than two characters long to avoid false positives such as @"-"
- Added UIAlertView APIs to add coverage to methods that require localized strings.
- Added in test case for EmptyLocalizationContext checker to show that it doesn't produce a false positive in the case that Anna pointed out.


http://reviews.llvm.org/D11572

Files:
  lib/StaticAnalyzer/Checkers/CMakeLists.txt
  lib/StaticAnalyzer/Checkers/Checkers.td
  lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
  test/Analysis/localization-aggressive.m
  test/Analysis/localization.m

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11572.31481.patch
Type: text/x-patch
Size: 35072 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150806/f1e2c17f/attachment-0001.bin>


More information about the cfe-commits mailing list