[cfe-dev] Clang: checker vs. plugin

Aitor San Juan aitor.sj at opendeusto.es
Mon Apr 21 04:53:05 PDT 2014


Reading the docs through carefully, I have realized that plugins are used
by the compiler, whereas checkers are used by the analyzer. Sorry for such
a trivial question.
Cheers.

2014-04-19 13:43 GMT+02:00 Aitor San Juan <aitor.sj at opendeusto.es>:

> Hello,
>
> I was wondering the difference between the concept of a plugin and a
> checker. Please, correct me. As far as I know, from a technical point of
> view, a plugin is a separately compiled routine (DLL) that may be loaded by
> the compiler (compile-time). However, a checker is a routine used by
> Clang's analyzer to enhance the latter's analysis logic (in the case of  a
> checker, in order for the analyzer to be able to use it, the latter must be
> rebuilt).
>
> I also wonder whether a plugin can also interact with Clang's analyzer? If
> so, then what reason could make you decide whether to implement a checker
> or a plugin?
>
> Thanks.
> Aitor.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140421/c9c67df4/attachment.html>


More information about the cfe-dev mailing list