]> granicus.if.org Git - clang/commit
[analyzer] Add 'optin' checker package and move localizability checkers into it.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 4 Nov 2015 21:33:41 +0000 (21:33 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 4 Nov 2015 21:33:41 +0000 (21:33 +0000)
commitb2b76b6f464d315a95d056d7296b8e84410b94fe
treeb6c44bdb96a3b3679a03bb5fe0bcdd4b524e9f98
parent2b441807c4260b43a3212668c8aa97d6ca177695
[analyzer] Add 'optin' checker package and move localizability checkers into it.

This commit creates a new 'optin' top-level checker package and moves several of
the localizability checkers into it.

This package is for checkers that are not alpha and that would normally be on by
default but where the driver does not have enough information to determine when
they are applicable. The localizability checkers fit this criterion because the
driver cannot determine whether a project is localized or not -- this is best
determined at the IDE or build-system level.

This new package is *not* intended for checkers that are too noisy to be on by
default.

The hierarchy under 'optin' mirrors that in 'alpha': checkers under 'optin'
should be organized in the hierarchy they would have had if they were truly top
level (e.g., optin.osx.cocoa.MyOptInChecker).

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

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