]> granicus.if.org Git - clang/commitdiff
Add a very minimal README.txt for examples/PrintFunctionNames.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 1 Dec 2009 03:15:49 +0000 (03:15 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 1 Dec 2009 03:15:49 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90197 91177308-0d34-0410-b5e6-96231b3b80d8

examples/PrintFunctionNames/README.txt [new file with mode: 0644]

diff --git a/examples/PrintFunctionNames/README.txt b/examples/PrintFunctionNames/README.txt
new file mode 100644 (file)
index 0000000..2859eef
--- /dev/null
@@ -0,0 +1,10 @@
+This is a simple example demonstrating how to use clang-cc'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-cc -load path/to/PrintFunctionNames.so -plugin=print-fns some-input-file.c
+--