Lines Matching +full:html +full:- +full:export

24 .. code-block:: c++
29 if (args[i] == "-some-arg") {
42 .. code-block:: c++
44 static FrontendPluginRegistry::Add<MyPlugin> X("my-plugin-name", "my plugin description");
52 .. code-block:: c++
72 .. code-block:: c++
91 </doxygen/structclang_1_1ParsedAttrInfo_1_1Spelling.html>`_ of the
121 <https://github.com/llvm/llvm-project/blob/main/clang/examples/Attribute/Attribute.cpp>`_.
126 Let's look at an example plugin that prints top-level function names. This
129 <https://github.com/llvm/llvm-project/blob/main/clang/examples/PrintFunctionNames/PrintFunctionNames.cpp>`_.
136 --------------------------
138 The Clang driver accepts the `-fplugin` option to load a plugin.
140 line via the `fplugin-arg-<plugin name>-<argument>` option. Using this
145 .. code-block:: console
147 $ export BD=/path/to/build/directory
148 $ make -C $BD CallSuperAttr
149 $ clang++ -fplugin=$BD/lib/CallSuperAttr.so \
150 -fplugin-arg-call_super_plugin-help \
158 --------------------------
161 loaded via the `-load` command line option. This will load all plugins
163 `-plugin` option. Additional parameters for the plugins can be passed with
164 `-plugin-arg-<plugin-name>`.
169 * Directly call the parsing process by using the `-cc1` option; this
174 `-Xclang`.
176 For example, to run the ``print-function-names`` plugin over a source file in
180 .. code-block:: console
182 $ export BD=/path/to/build/directory
184 $ clang++ -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS \
185 -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE \
186 -I$BD/tools/clang/include -Itools/clang/include -I$BD/include -Iinclude \
187 tools/clang/tools/clang-check/ClangCheck.cpp -fsyntax-only \
188 -Xclang -load -Xclang $BD/lib/PrintFunctionNames.so -Xclang \
189 -plugin -Xclang print-fns
191 Also see the print-function-name plugin example's
192 `README <https://github.com/llvm/llvm-project/blob/main/clang/examples/PrintFunctionNames/README.txt>`_
196 ----------------------------
198 Using `-fplugin=plugin` on the clang command line passes the plugin
199 through as an argument to `-load` on the cc1 command line. If the plugin
202 action (i.e. the same as using `-add-plugin`):
204 .. code-block:: c++
211 Interaction with ``-clear-ast-before-backend``
212 ----------------------------------------------
217 ``-clear-ast-before-backend``. ``-clear-ast-before-backend`` reduces peak
221 ``-clear-ast-before-backend``. Plugins must make sure not to modify the AST,