summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt')
-rw-r--r--contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt b/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt
new file mode 100644
index 0000000..267865c
--- /dev/null
+++ b/contrib/llvm/tools/clang/examples/PrintFunctionNames/README.txt
@@ -0,0 +1,10 @@
+This is a simple example demonstrating how to use clang's facility for
+providing AST consumers using a plugin.
+
+You will probably need to build clang so that it exports all symbols (disable
+TOOL_NO_EXPORT in the tools/clang Makefile).
+
+Once the plugin is built, you can run it using:
+--
+$ clang -cc1 -load path/to/PrintFunctionNames.so -plugin print-fns some-input-file.c
+--
OpenPOWER on IntegriCloud