Lines Matching refs:plugin
15 simple clang plugin.
21 handle plugin command line options. The ``PluginASTAction`` base class declares
22 a ``ParseArgs`` method which you have to implement in your plugin.
36 Registering a plugin
39 A plugin is loaded from a dynamic library at runtime by the compiler. To
40 register a plugin in a library, use ``FrontendPluginRegistry::Add<>``:
44 static FrontendPluginRegistry::Add<MyPlugin> X("my-plugin-name", "my plugin description");
49 Let's look at an example plugin that prints top-level function names. This
54 Running the plugin
57 To run a plugin, the dynamic library containing the plugin registry must be
60 :option:`-plugin` option. Additional parameters for the plugins can be passed with
61 :option:`-plugin-arg-<plugin-name>`.
73 For example, to run the ``print-function-names`` plugin over a source file in
74 clang, first build the plugin, and then call clang with the plugin from the
86 -plugin -Xclang print-fns
88 Also see the print-function-name plugin example's