]> granicus.if.org Git - clang/commit
[analyzer] Improve localizability checks for iOS / OS X.
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 22 Sep 2015 23:58:04 +0000 (23:58 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 22 Sep 2015 23:58:04 +0000 (23:58 +0000)
commit06657360f8249a05dac6a64af5472956e5bca8de
treeae7a1fa41212015ec957ad5b1bfee84a0fc15f5c
parent73315f72a2091910efbe128e1d97e571e8ce17b0
[analyzer] Improve localizability checks for iOS / OS X.

Various improvements to the localization checker:
* Adjusted copy to be consistent with diagnostic text in other Apple
  API checkers.
* Added in ~150 UIKit / AppKit methods that require localized strings in
  UnlocalizedStringsChecker.
* UnlocalizedStringChecker now checks for UI methods up the class hierarchy and
  UI methods that conform for a certain Objective-C protocol.
* Added in alpha version of PluralMisuseChecker and some regression tests. False
  positives are still not ideal.

A patch by Kulpreet Chilana!

Differential Revision: http://reviews.llvm.org/D12417

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248350 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/Checkers.td
lib/StaticAnalyzer/Checkers/LocalizationChecker.cpp
test/Analysis/localization-aggressive.m
test/Analysis/localization.m