Index: tools/clang/BindMigrate/README.chromium |
diff --git a/tools/clang/BindMigrate/README.chromium b/tools/clang/BindMigrate/README.chromium |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ecdc19ff0525ec7a35726c958fd9ef02e8675e81 |
--- /dev/null |
+++ b/tools/clang/BindMigrate/README.chromium |
@@ -0,0 +1,19 @@ |
+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/libBindMigrate.so -plugin bind-migrate some-input-file.cc |
+ |
+Mac: |
+$ clang -cc1 -load ../../Debug+Asserts/lib/libBindMigrate.dylib -plugin bind-migrate some-input-file.cc |
+ |
+To use with gyp, do something like: |
+ |
+GYP_DEFINES='clang=1 clang_load=/abs/path/to/libBindMigrate.dylib |
+clang_add_plugin=bind-migrate' gclient runhooks |
+ |
+then do a clobber build to run the plugin on all files. |