• Home
  • Raw
  • Download

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");
88 The members of ``ParsedAttrInfo`` that a plugin attribute must define are:
113 To see a working example of an attribute plugin, see `the Attribute.cpp example
119 Let's look at an example plugin that prints top-level function names. This
124 Running the plugin
131 To run a plugin, the dynamic library containing the plugin registry must be
134 `-plugin` option. Additional parameters for the plugins can be passed with
135 `-plugin-arg-<plugin-name>`.
147 For example, to run the ``print-function-names`` plugin over a source file in
148 clang, first build the plugin, and then call clang with the plugin from the
160 -plugin -Xclang print-fns
162 Also see the print-function-name plugin example's
169 Using `-fplugin=plugin` on the clang command line passes the plugin
170 through as an argument to `-load` on the cc1 command line. If the plugin
171 class implements the ``getActionType`` method then the plugin is run
172 automatically. For example, to run the plugin automatically after the main AST
173 action (i.e. the same as using `-add-plugin`):
177 // Automatically run the plugin after the main AST action