[analyzer] Allow registering custom statically-linked analyzer checkers
authorAlexander Kornienko <alexfh@google.com>
Wed, 27 Jun 2018 14:56:12 +0000 (14:56 +0000)
committerAlexander Kornienko <alexfh@google.com>
Wed, 27 Jun 2018 14:56:12 +0000 (14:56 +0000)
commitd00ed8e2c20014044e42fb7b9380dc9e297cd66f
tree8e90ce7b57988384c31b9b20fdf07f3acce3c63c
parentafc62b7032848e8dfbd30eb2323c7e7d57f981e4
[analyzer] Allow registering custom statically-linked analyzer checkers

Summary:
Add an extension point to allow registration of statically-linked Clang Static
Analyzer checkers that are not a part of the Clang tree. This extension point
employs the mechanism used when checkers are registered from dynamically loaded
plugins.

Reviewers: george.karpenkov, NoQ, xazax.hun, dcoughlin

Reviewed By: george.karpenkov

Subscribers: mgorny, mikhail.ramalho, rnkovacs, xazax.hun, szepet, a.sidorin, cfe-commits

Differential Revision: https://reviews.llvm.org/D45718

llvm-svn: 335740
clang/include/clang/StaticAnalyzer/Frontend/AnalysisConsumer.h
clang/include/clang/StaticAnalyzer/Frontend/CheckerRegistration.h
clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
clang/unittests/StaticAnalyzer/AnalyzerOptionsTest.cpp
clang/unittests/StaticAnalyzer/CMakeLists.txt
clang/unittests/StaticAnalyzer/RegisterCustomCheckersTest.cpp [new file with mode: 0644]