Index of /mirrors/ftp.netbsd.org/NetBSD-release-9/src/external/bsd/llvm/dist/clang/examples/PrintFunctionNames/

NameLast ModifiedSizeType
Parent Directory/ -  Directory
CVS/2024-Feb-14 19:45:05-  Directory
CMakeLists.txt2018-Jul-17 20:30:560.6Ktext/plain
PrintFunctionNames.cpp2017-Jan-11 11:33:134.3Ktext/plain
PrintFunctionNames.exports2014-Aug-10 19:08:360.0Kapplication/octet-stream
README.txt2013-Nov-28 15:14:541.0Ktext/plain
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
lighttpd/1.4.19