This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Add 'optin' checker package and move localizability checkers into it.
ClosedPublic

Authored by dcoughlin on Nov 3 2015, 1:40 PM.

Details

Summary

This patch 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).

We are not attached to the name 'optin'. If you have ideas for a better name, we welcome suggestions.

Diff Detail

Repository
rL LLVM

Event Timeline

dcoughlin updated this revision to Diff 39102.Nov 3 2015, 1:40 PM
dcoughlin retitled this revision from to [analyzer] Add 'optin' checker package and move localizability checkers into it..
dcoughlin updated this object.
dcoughlin added reviewers: zaks.anna, krememek.
dcoughlin added a subscriber: cfe-commits.
zaks.anna edited edge metadata.Nov 4 2015, 11:16 AM

See the comment below, otherwise, LGTM.

lib/StaticAnalyzer/Checkers/Checkers.td
23 ↗(On Diff #39102)

Please, add a comment describing for how this package should be used as you do in the commit message.
As you are at it, feel free to update the comment for alpha as well.

dcoughlin marked an inline comment as done.Nov 4 2015, 1:32 PM
This revision was automatically updated to reflect the committed changes.