]> granicus.if.org Git - clang/commit
[analyzer] Add checkers for OS X / iOS localizability issues
authorAnna Zaks <ganna@apple.com>
Fri, 14 Aug 2015 20:22:22 +0000 (20:22 +0000)
committerAnna Zaks <ganna@apple.com>
Fri, 14 Aug 2015 20:22:22 +0000 (20:22 +0000)
commit33ce4318f774e144c7726a3d0b4aa27093e3b998
tree57beae70f76f5bc66bcba1d024785defa4a6935b
parentb56e78abef3c69a3ff5ce1412316b1269f111801
[analyzer] Add checkers for OS X / iOS localizability issues

Add checkers that detect code-level localizability issues for OS X / iOS:
  - A path sensitive checker that warns about uses of non-localized
    NSStrings passed to UI methods expecting localized strings.
  - A syntax checker that warns against not including a comment in
    NSLocalizedString macros.

A patch by Kulpreet Chilana!

(This is the second attempt with the compilation issue on Windows and
the random test failures resolved.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245093 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/CMakeLists.txt
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp [new file with mode: 0644]
test/Analysis/localization-aggressive.m [new file with mode: 0644]
test/Analysis/localization.m [new file with mode: 0644]