Index of /archives/NetBSD/NetBSD-release-9/src/external/bsd/llvm/dist/clang/examples/PrintFunctionNames

Icon  Name                                                                         Last modified      Size  Description
[PARENTDIR] Parent Directory - [TXT] CMakeLists.txt 2018-07-18 03:30 652 [DIR] CVS/ 2024-02-15 03:45 - [TXT] PrintFunctionNames.cpp 2017-01-11 19:33 4.4K [TXT] PrintFunctionNames.exports 2014-08-11 02:08 0 [TXT] README.txt 2013-11-28 23:14 1.0K
This is a simple example demonstrating how to use clang's facility for
providing AST consumers using a plugin.

Build the plugin by running `make` in this directory.

Once the plugin is built, you can run it using:
--
Linux:
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns some-input-file.c
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns -plugin-arg-print-fns help -plugin-arg-print-fns --example-argument some-input-file.c
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c

Mac:
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns some-input-file.c
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns -plugin-arg-print-fns help -plugin-arg-print-fns --example-argument some-input-file.c
$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c