smatch: Add --enable option
commit96c3a7c2459bdafdbd12f307aa5d1e7c61c9bc52
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Sat, 7 Feb 2015 00:09:35 +0000 (7 01:09 +0100)
committerDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Feb 2015 18:51:21 +0000 (11 21:51 +0300)
treef04567a9a9ec05c400ca9bb59a0c2d9d2839e4aa
parentfb98c9da7e3015aacbfdd61b54f5394067ed68da
smatch: Add --enable option

It can be useful, especially when developing a new check, to only run
a subset of checks. The --enable option takes a comma-separated list
of integers or ranges and only enables those checks (the default is of
course that everything is enabled).

For now, anything called register_* is unconditionally called, since lots
of stuff seems to depend on that.
smatch.c