]> granicus.if.org Git - clang/commit
[analyzer] Improve localizability checks for iOS / OS X.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 23 Sep 2015 21:43:21 +0000 (21:43 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 23 Sep 2015 21:43:21 +0000 (21:43 +0000)
commit29c82e806e84169d651b654ad3af502dc6921165
treebca72b487db9ca4e1d4dbc3d1ffe7cf53386ac90
parent1878f91a0aaf74e1424ca10061ee2785b1c619e9
[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.

(This is the second attempt, with the memory issues on Linux resolved.)

A patch by Kulpreet Chilana!

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

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