Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
CMakeLists.txt | D | 07-May-2024 | 651 | 22 | 19 | |
Makefile | D | 07-May-2024 | 757 | 29 | 13 | |
PrintFunctionNames.cpp | D | 07-May-2024 | 4.4 KiB | 124 | 86 | |
PrintFunctionNames.exports | D | 07-May-2024 | 0 | |||
README.txt | D | 07-May-2024 | 1 KiB | 17 | 13 |
README.txt
1This is a simple example demonstrating how to use clang's facility for 2providing AST consumers using a plugin. 3 4Build the plugin by running `make` in this directory. 5 6Once the plugin is built, you can run it using: 7-- 8Linux: 9$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns some-input-file.c 10$ 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 11$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.so -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c 12 13Mac: 14$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns some-input-file.c 15$ 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 16$ clang -cc1 -load ../../Debug+Asserts/lib/libPrintFunctionNames.dylib -plugin print-fns -plugin-arg-print-fns -an-error some-input-file.c 17