Right now it is not possible to load and run static analyzer plugins when using clang tidy.
This patch makes it possible. However the list of possible checkers now depends upon the command line.
Note that, this patch also needs clang support.
The clang part is here: http://reviews.llvm.org/D9556
It was fine to have this as a global variable while it was a compile-time constant. But it's a bad idea to use a global mutable variable to pass configuration to the library. Actually, I'd leave the compile-time checks list as a fallback, and only override it if clang-tidy is instructed to use a static analyzer plugin.